54 "/user/hand/left/input/select/click",
55 "/user/hand/left/input/select",
72 "/user/hand/left/input/menu/click",
73 "/user/hand/left/input/menu",
90 "/user/hand/left/input/grip/pose",
91 "/user/hand/left/input/grip",
108 "/user/hand/left/input/aim/pose",
109 "/user/hand/left/input/aim",
126 "/user/hand/left/output/haptic",
141 "/user/hand/right/input/select/click",
142 "/user/hand/right/input/select",
159 "/user/hand/right/input/menu/click",
160 "/user/hand/right/input/menu",
177 "/user/hand/right/input/grip/pose",
178 "/user/hand/right/input/grip",
195 "/user/hand/right/input/aim/pose",
196 "/user/hand/right/input/aim",
213 "/user/hand/right/output/haptic",
242 "/user/hand/left/input/select/click",
243 "/user/hand/left/input/select",
260 "/user/hand/left/input/trackpad",
261 "/user/hand/left/input/trackpad/x",
262 "/user/hand/left/input/trackpad/y",
274 "/user/hand/left/input/trackpad/click",
275 "/user/hand/left/input/trackpad",
287 "/user/hand/left/input/trackpad/touch",
299 "/user/hand/left/input/grip/pose",
300 "/user/hand/left/input/grip",
316 "/user/hand/left/input/aim/pose",
317 "/user/hand/left/input/aim",
333 "/user/hand/right/input/select/click",
334 "/user/hand/right/input/select",
351 "/user/hand/right/input/trackpad",
352 "/user/hand/right/input/trackpad/x",
353 "/user/hand/right/input/trackpad/y",
365 "/user/hand/right/input/trackpad/click",
366 "/user/hand/right/input/trackpad",
378 "/user/hand/right/input/trackpad/touch",
390 "/user/hand/right/input/grip/pose",
391 "/user/hand/right/input/grip",
407 "/user/hand/right/input/aim/pose",
408 "/user/hand/right/input/aim",
433 static struct binding_template mnd_ball_on_stick_controller_bindings[26] = {
438 "/user/hand/left/input/system/click",
439 "/user/hand/left/input/system",
452 "/user/hand/left/input/menu/click",
453 "/user/hand/left/input/menu",
466 "/user/hand/left/input/start/click",
467 "/user/hand/left/input/start",
480 "/user/hand/left/input/select/click",
481 "/user/hand/left/input/select",
494 "/user/hand/left/input/square_mnd/click",
495 "/user/hand/left/input/square_mnd",
508 "/user/hand/left/input/cross_mnd/click",
509 "/user/hand/left/input/cross_mnd",
522 "/user/hand/left/input/circle_mnd/click",
523 "/user/hand/left/input/circle_mnd",
536 "/user/hand/left/input/triangle_mnd/click",
537 "/user/hand/left/input/triangle_mnd",
550 "/user/hand/left/input/trigger/value",
551 "/user/hand/left/input/trigger",
564 "/user/hand/left/input/grip/pose",
565 "/user/hand/left/input/grip",
578 "/user/hand/left/input/ball_mnd/pose",
579 "/user/hand/left/input/ball_mnd",
592 "/user/hand/left/input/aim/pose",
593 "/user/hand/left/input/aim",
606 "/user/hand/left/output/haptic",
619 "/user/hand/right/input/system/click",
620 "/user/hand/right/input/system",
633 "/user/hand/right/input/menu/click",
634 "/user/hand/right/input/menu",
647 "/user/hand/right/input/start/click",
648 "/user/hand/right/input/start",
661 "/user/hand/right/input/select/click",
662 "/user/hand/right/input/select",
675 "/user/hand/right/input/square_mnd/click",
676 "/user/hand/right/input/square_mnd",
689 "/user/hand/right/input/cross_mnd/click",
690 "/user/hand/right/input/cross_mnd",
703 "/user/hand/right/input/circle_mnd/click",
704 "/user/hand/right/input/circle_mnd",
717 "/user/hand/right/input/triangle_mnd/click",
718 "/user/hand/right/input/triangle_mnd",
731 "/user/hand/right/input/trigger/value",
732 "/user/hand/right/input/trigger",
745 "/user/hand/right/input/grip/pose",
746 "/user/hand/right/input/grip",
759 "/user/hand/right/input/ball_mnd/pose",
760 "/user/hand/right/input/ball_mnd",
773 "/user/hand/right/input/aim/pose",
774 "/user/hand/right/input/aim",
787 "/user/hand/right/output/haptic",
799 #define MAKE_INPUT(COMPONENT, SUFFIX, INPUT) \ 801 .sub_path = OXR_SUB_ACTION_PATH_LEFT, \ 804 "/user/hand/left/input/" #COMPONENT "/" #SUFFIX, \ 805 "/user/hand/left/input/" #COMPONENT, \ 811 (enum xrt_input_name)0, \ 815 .sub_path = OXR_SUB_ACTION_PATH_RIGHT, \ 818 "/user/hand/right/input/" #COMPONENT "/" #SUFFIX, \ 819 "/user/hand/right/input/" #COMPONENT, \ 825 (enum xrt_input_name)0, \ 829 #define MAKE_OUTPUT(COMPONENT, SUFFIX, OUTPUT) \ 831 .sub_path = OXR_SUB_ACTION_PATH_LEFT, \ 834 "/user/hand/left/output/" #COMPONENT "/" #SUFFIX, \ 835 "/user/hand/left/output/" #COMPONENT, \ 841 (enum xrt_output_name)0, \ 845 .sub_path = OXR_SUB_ACTION_PATH_RIGHT, \ 848 "/user/hand/right/output/" #COMPONENT "/" #SUFFIX, \ 849 "/user/hand/right/output/" #COMPONENT, \ 855 (enum xrt_output_name)0, \ 907 .
path =
"/interaction_profiles/khr/simple_controller",
908 .bindings = khr_simple_controller_bindings,
909 .num_bindings =
ARRAY_SIZE(khr_simple_controller_bindings),
912 .path =
"/interaction_profiles/google/daydream_controller",
913 .bindings = google_daydream_controller_bindings,
914 .num_bindings =
ARRAY_SIZE(google_daydream_controller_bindings),
917 .path =
"/interaction_profiles/mnd/ball_on_stick_controller",
918 .bindings = mnd_ball_on_stick_controller_bindings,
919 .num_bindings =
ARRAY_SIZE(mnd_ball_on_stick_controller_bindings),
922 .path =
"/interaction_profiles/valve/index_controller",
923 .bindings = valve_index_controller_bindings,
924 .num_bindings =
ARRAY_SIZE(valve_index_controller_bindings),
927 .path =
"/interaction_profiles/htc/vive_controller",
928 .bindings = htc_vive_controller_bindings,
929 .num_bindings =
ARRAY_SIZE(htc_vive_controller_bindings),
Definition: xrt_defines.h:449
Definition: xrt_defines.h:465
#define MAKE_OUTPUT(COMPONENT, SUFFIX, OUTPUT)
Definition: oxr_binding_data.h:829
Definition: xrt_defines.h:474
Definition: xrt_defines.h:430
Definition: xrt_defines.h:484
Definition: xrt_defines.h:459
Definition: xrt_defines.h:470
Definition: xrt_defines.h:434
Definition: xrt_defines.h:485
enum xrt_input_name inputs[8]
Definition: oxr_binding_data.h:19
Definition: xrt_defines.h:488
Definition: xrt_defines.h:489
Definition: oxr_binding_data.h:15
Definition: xrt_defines.h:535
Definition: xrt_defines.h:473
size_t num_bindings
Definition: oxr_binding_data.h:30
Definition: oxr_binding_data.h:23
Definition: xrt_defines.h:466
#define ARRAY_SIZE(a)
Array size helper.
Definition: xrt_compiler.h:24
Definition: xrt_defines.h:481
Definition: xrt_defines.h:491
Definition: xrt_defines.h:451
Definition: xrt_defines.h:477
Definition: xrt_defines.h:431
uint16_t touch[2]
Definition: vive_protocol.h:221
Definition: xrt_defines.h:428
Definition: xrt_defines.h:436
Definition: xrt_defines.h:478
Definition: xrt_defines.h:448
xrt_output_name
Name of a output with a baked in type.
Definition: xrt_defines.h:532
Definition: xrt_defines.h:493
Definition: xrt_defines.h:480
#define MAKE_INPUT(COMPONENT, SUFFIX, INPUT)
Definition: oxr_binding_data.h:799
Definition: xrt_defines.h:487
Definition: xrt_defines.h:463
Definition: xrt_defines.h:427
Definition: xrt_defines.h:429
Definition: xrt_defines.h:433
Definition: xrt_defines.h:462
Definition: xrt_defines.h:475
Definition: xrt_defines.h:437
Definition: xrt_defines.h:479
Definition: xrt_defines.h:464
Definition: xrt_defines.h:483
struct binding_template * bindings
Definition: oxr_binding_data.h:29
Definition: xrt_defines.h:444
Definition: oxr_objects.h:117
oxr_sub_action_path
Sub action paths.
Definition: oxr_objects.h:112
Definition: oxr_objects.h:116
Definition: xrt_defines.h:476
enum xrt_output_name outputs[8]
Definition: oxr_binding_data.h:20
Contains the instance struct that a lot of things hang from.
Definition: xrt_defines.h:438
Definition: xrt_defines.h:471
Definition: xrt_defines.h:452
uint16_t trigger
Definition: vive_protocol.h:215
Definition: xrt_defines.h:461
Definition: xrt_defines.h:486
Definition: xrt_defines.h:537
Definition: xrt_defines.h:435
enum oxr_sub_action_path sub_path
Definition: oxr_binding_data.h:17
Definition: xrt_defines.h:467
Definition: xrt_defines.h:490
const char * paths[8]
Definition: oxr_binding_data.h:18
Definition: xrt_defines.h:472
xrt_input_name
Name of a input with a baked in type.
Definition: xrt_defines.h:421
Definition: xrt_defines.h:492
Definition: xrt_defines.h:469
const char * path
Definition: oxr_binding_data.h:25
Definition: xrt_defines.h:536
Definition: xrt_defines.h:432