Commit bf45f2bc authored by Ryan Pavlik's avatar Ryan Pavlik Committed by Jakob Bornecrantz

st/oxr: Hack the fixed bindings to add support for the Hydra

parent 2cd28914
Pipeline #51779 passed with stages
in 40 seconds
......@@ -308,10 +308,14 @@ MEGA_HACK_get_binding(struct oxr_logger* log,
}
if (strcmp(act->name, "grip_object") == 0) {
oxr_xdev_find_input(xdev, XRT_INPUT_PSMV_TRIGGER_VALUE, &input);
oxr_xdev_find_input(xdev, XRT_INPUT_PSMV_TRIGGER_VALUE,
&input) ||
oxr_xdev_find_input(xdev, XRT_INPUT_HYDRA_TRIGGER_VALUE,
&input);
} else if (strcmp(act->name, "hand_pose") == 0) {
oxr_xdev_find_input(xdev, XRT_INPUT_PSMV_BODY_CENTER_POSE,
&input);
&input) ||
oxr_xdev_find_input(xdev, XRT_INPUT_HYDRA_POSE, &input);
} else if (strcmp(act->name, "vibrate_hand") == 0) {
oxr_xdev_find_output(
xdev, XRT_OUTPUT_NAME_PSMV_RUMBLE_VIBRATION, &output);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment