mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-18 11:40:06 +00:00
st/oxr: Hack the fixed bindings to add support for the Hydra
This commit is contained in:
parent
2cd28914c7
commit
bf45f2bc21
|
@ -308,10 +308,14 @@ MEGA_HACK_get_binding(struct oxr_logger* log,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(act->name, "grip_object") == 0) {
|
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) {
|
} else if (strcmp(act->name, "hand_pose") == 0) {
|
||||||
oxr_xdev_find_input(xdev, XRT_INPUT_PSMV_BODY_CENTER_POSE,
|
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) {
|
} else if (strcmp(act->name, "vibrate_hand") == 0) {
|
||||||
oxr_xdev_find_output(
|
oxr_xdev_find_output(
|
||||||
xdev, XRT_OUTPUT_NAME_PSMV_RUMBLE_VIBRATION, &output);
|
xdev, XRT_OUTPUT_NAME_PSMV_RUMBLE_VIBRATION, &output);
|
||||||
|
|
Loading…
Reference in a new issue