51 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
54 "/user/hand/left/input/select/click",
55 "/user/hand/left/input/select",
60 XRT_INPUT_PSMV_TRIGGER_VALUE,
61 XRT_INPUT_HYDRA_TRIGGER_VALUE,
62 XRT_INPUT_DAYDREAM_TOUCHPAD_CLICK,
67 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
70 "/user/hand/left/input/menu/click",
71 "/user/hand/left/input/menu",
76 XRT_INPUT_PSMV_MOVE_CLICK,
77 XRT_INPUT_HYDRA_MIDDLE_CLICK,
78 XRT_INPUT_DAYDREAM_BAR_CLICK,
83 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
86 "/user/hand/left/input/grip/pose",
87 "/user/hand/left/input/grip",
92 XRT_INPUT_PSMV_BODY_CENTER_POSE,
94 XRT_INPUT_DAYDREAM_POSE,
99 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
102 "/user/hand/left/input/aim/pose",
103 "/user/hand/left/input/aim",
108 XRT_INPUT_PSMV_BALL_TIP_POSE,
109 XRT_INPUT_HYDRA_POSE,
110 XRT_INPUT_DAYDREAM_POSE,
115 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
118 "/user/hand/left/output/haptic",
123 XRT_OUTPUT_NAME_PSMV_RUMBLE_VIBRATION,
128 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
131 "/user/hand/right/input/select/click",
132 "/user/hand/right/input/select",
137 XRT_INPUT_PSMV_TRIGGER_VALUE,
138 XRT_INPUT_HYDRA_TRIGGER_VALUE,
139 XRT_INPUT_DAYDREAM_TOUCHPAD_CLICK,
144 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
147 "/user/hand/right/input/menu/click",
148 "/user/hand/right/input/menu",
153 XRT_INPUT_PSMV_MOVE_CLICK,
154 XRT_INPUT_HYDRA_MIDDLE_CLICK,
155 XRT_INPUT_DAYDREAM_BAR_CLICK,
160 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
163 "/user/hand/right/input/grip/pose",
164 "/user/hand/right/input/grip",
169 XRT_INPUT_PSMV_BODY_CENTER_POSE,
170 XRT_INPUT_HYDRA_POSE,
171 XRT_INPUT_DAYDREAM_POSE,
176 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
179 "/user/hand/right/input/aim/pose",
180 "/user/hand/right/input/aim",
185 XRT_INPUT_PSMV_BALL_TIP_POSE,
186 XRT_INPUT_HYDRA_POSE,
187 XRT_INPUT_DAYDREAM_POSE,
192 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
195 "/user/hand/right/output/haptic",
200 XRT_OUTPUT_NAME_PSMV_RUMBLE_VIBRATION,
219 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
222 "/user/hand/left/input/select/click",
223 "/user/hand/left/input/select",
229 XRT_INPUT_PSMV_TRIGGER_VALUE,
230 XRT_INPUT_HYDRA_TRIGGER_VALUE,
237 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
240 "/user/hand/left/input/trackpad",
241 "/user/hand/left/input/trackpad/x",
242 "/user/hand/left/input/trackpad/y",
251 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
254 "/user/hand/left/input/trackpad/click",
255 "/user/hand/left/input/trackpad",
264 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
267 "/user/hand/left/input/trackpad/touch",
276 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
279 "/user/hand/left/input/grip/pose",
280 "/user/hand/left/input/grip",
286 XRT_INPUT_PSMV_BODY_CENTER_POSE,
287 XRT_INPUT_HYDRA_POSE,
293 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
296 "/user/hand/left/input/aim/pose",
297 "/user/hand/left/input/aim",
303 XRT_INPUT_PSMV_BALL_TIP_POSE,
304 XRT_INPUT_HYDRA_POSE,
310 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
313 "/user/hand/right/input/select/click",
314 "/user/hand/right/input/select",
320 XRT_INPUT_PSMV_TRIGGER_VALUE,
321 XRT_INPUT_HYDRA_TRIGGER_VALUE,
327 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
331 "/user/hand/right/input/trackpad",
332 "/user/hand/right/input/trackpad/x",
333 "/user/hand/right/input/trackpad/y",
342 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
345 "/user/hand/right/input/trackpad/click",
346 "/user/hand/right/input/trackpad",
355 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
358 "/user/hand/right/input/trackpad/touch",
367 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
370 "/user/hand/right/input/grip/pose",
371 "/user/hand/right/input/grip",
377 XRT_INPUT_PSMV_BODY_CENTER_POSE,
378 XRT_INPUT_HYDRA_POSE,
384 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
387 "/user/hand/right/input/aim/pose",
388 "/user/hand/right/input/aim",
394 XRT_INPUT_PSMV_BALL_TIP_POSE,
395 XRT_INPUT_HYDRA_POSE,
413 static struct binding_template mnd_ball_on_stick_controller_bindings[26] = {
415 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
418 "/user/hand/left/input/system/click",
419 "/user/hand/left/input/system",
424 XRT_INPUT_PSMV_PS_CLICK,
429 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
432 "/user/hand/left/input/menu/click",
433 "/user/hand/left/input/menu",
438 XRT_INPUT_PSMV_MOVE_CLICK,
443 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
446 "/user/hand/left/input/start/click",
447 "/user/hand/left/input/start",
452 XRT_INPUT_PSMV_START_CLICK,
457 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
460 "/user/hand/left/input/select/click",
461 "/user/hand/left/input/select",
466 XRT_INPUT_PSMV_SELECT_CLICK,
471 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
474 "/user/hand/left/input/square_mnd/click",
475 "/user/hand/left/input/square_mnd",
480 XRT_INPUT_PSMV_SQUARE_CLICK,
485 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
488 "/user/hand/left/input/cross_mnd/click",
489 "/user/hand/left/input/cross_mnd",
494 XRT_INPUT_PSMV_CROSS_CLICK,
499 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
502 "/user/hand/left/input/circle_mnd/click",
503 "/user/hand/left/input/circle_mnd",
508 XRT_INPUT_PSMV_CIRCLE_CLICK,
513 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
516 "/user/hand/left/input/triangle_mnd/click",
517 "/user/hand/left/input/triangle_mnd",
522 XRT_INPUT_PSMV_TRIANGLE_CLICK,
527 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
530 "/user/hand/left/input/trigger/value",
531 "/user/hand/left/input/trigger",
536 XRT_INPUT_PSMV_TRIGGER_VALUE,
541 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
544 "/user/hand/left/input/grip/pose",
545 "/user/hand/left/input/grip",
550 XRT_INPUT_PSMV_BODY_CENTER_POSE,
555 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
558 "/user/hand/left/input/ball_mnd/pose",
559 "/user/hand/left/input/ball_mnd",
564 XRT_INPUT_PSMV_BALL_CENTER_POSE,
569 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
572 "/user/hand/left/input/aim/pose",
573 "/user/hand/left/input/aim",
578 XRT_INPUT_PSMV_BALL_TIP_POSE,
583 .sub_path = OXR_SUB_ACTION_PATH_LEFT,
586 "/user/hand/left/output/haptic",
591 XRT_OUTPUT_NAME_PSMV_RUMBLE_VIBRATION,
596 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
599 "/user/hand/right/input/system/click",
600 "/user/hand/right/input/system",
605 XRT_INPUT_PSMV_PS_CLICK,
610 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
613 "/user/hand/right/input/menu/click",
614 "/user/hand/right/input/menu",
619 XRT_INPUT_PSMV_MOVE_CLICK,
624 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
627 "/user/hand/right/input/start/click",
628 "/user/hand/right/input/start",
633 XRT_INPUT_PSMV_START_CLICK,
638 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
641 "/user/hand/right/input/select/click",
642 "/user/hand/right/input/select",
647 XRT_INPUT_PSMV_SELECT_CLICK,
652 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
655 "/user/hand/right/input/square_mnd/click",
656 "/user/hand/right/input/square_mnd",
661 XRT_INPUT_PSMV_SQUARE_CLICK,
666 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
669 "/user/hand/right/input/cross_mnd/click",
670 "/user/hand/right/input/cross_mnd",
675 XRT_INPUT_PSMV_CROSS_CLICK,
680 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
683 "/user/hand/right/input/circle_mnd/click",
684 "/user/hand/right/input/circle_mnd",
689 XRT_INPUT_PSMV_CIRCLE_CLICK,
694 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
697 "/user/hand/right/input/triangle_mnd/click",
698 "/user/hand/right/input/triangle_mnd",
703 XRT_INPUT_PSMV_TRIANGLE_CLICK,
708 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
711 "/user/hand/right/input/trigger/value",
712 "/user/hand/right/input/trigger",
717 XRT_INPUT_PSMV_TRIGGER_VALUE,
722 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
725 "/user/hand/right/input/grip/pose",
726 "/user/hand/right/input/grip",
731 XRT_INPUT_PSMV_BODY_CENTER_POSE,
736 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
739 "/user/hand/right/input/ball_mnd/pose",
740 "/user/hand/right/input/ball_mnd",
745 XRT_INPUT_PSMV_BALL_CENTER_POSE,
750 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
753 "/user/hand/right/input/aim/pose",
754 "/user/hand/right/input/aim",
759 XRT_INPUT_PSMV_BALL_TIP_POSE,
764 .sub_path = OXR_SUB_ACTION_PATH_RIGHT,
767 "/user/hand/right/output/haptic",
772 XRT_OUTPUT_NAME_PSMV_RUMBLE_VIBRATION,
780 .path =
"/interaction_profiles/khr/simple_controller",
781 .bindings = khr_simple_controller_bindings,
782 .num_bindings =
ARRAY_SIZE(khr_simple_controller_bindings),
785 .path =
"/interaction_profiles/google/daydream_controller",
786 .bindings = google_daydream_controller_bindings,
787 .num_bindings =
ARRAY_SIZE(google_daydream_controller_bindings),
790 .path =
"/interaction_profiles/mnd/ball_on_stick_controller",
791 .bindings = mnd_ball_on_stick_controller_bindings,
792 .num_bindings =
ARRAY_SIZE(mnd_ball_on_stick_controller_bindings),
Definition: oxr_binding_data.h:15
Definition: oxr_binding_data.h:23
#define ARRAY_SIZE(a)
Array size helper.
Definition: xrt_compiler.h:24
xrt_output_name
Name of a output with a baked in type.
Definition: xrt_defines.h:494
oxr_sub_action_path
Sub action paths.
Definition: oxr_objects.h:111
Contains the instance struct that a lot of things hang from.
xrt_input_name
Name of a input with a baked in type.
Definition: xrt_defines.h:417