From 267738fc4075b1c5dcf57ed77467c2f7552ecaf6 Mon Sep 17 00:00:00 2001 From: kgv Date: Wed, 4 May 2022 12:54:52 +0300 Subject: [PATCH] 0032959: Visualization, OpenVR - add Oculus Touch controller bindings --- src/XRResources/FILES | 1 + src/XRResources/occtvr_bindings_touch.json | 160 +++++++++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 src/XRResources/occtvr_bindings_touch.json diff --git a/src/XRResources/FILES b/src/XRResources/FILES index 43ea04e5b0..817f962b6d 100644 --- a/src/XRResources/FILES +++ b/src/XRResources/FILES @@ -3,6 +3,7 @@ srcinc:::occtvr_bindings_generic.json srcinc:::occtvr_bindings_holographic_hmd.json srcinc:::occtvr_bindings_index_hmd.json srcinc:::occtvr_bindings_rift.json +srcinc:::occtvr_bindings_touch.json srcinc:::occtvr_bindings_vive.json srcinc:::occtvr_bindings_vive_controller.json srcinc:::occtvr_bindings_vive_cosmos.json diff --git a/src/XRResources/occtvr_bindings_touch.json b/src/XRResources/occtvr_bindings_touch.json new file mode 100644 index 0000000000..723d0d9888 --- /dev/null +++ b/src/XRResources/occtvr_bindings_touch.json @@ -0,0 +1,160 @@ +{ + "action_manifest_version" : 0, + "alias_info" : {}, + "bindings" : { + "/actions/generic_left" : { + "haptics" : [ + { + "output" : "/actions/generic_left/out/haptic", + "path" : "/user/hand/left/output/haptic" + } + ], + "sources" : [ + { + "inputs" : { + "click" : { + "output" : "/actions/generic_left/in/appmenu_click" + } + }, + "mode" : "button", + "path" : "/user/hand/left/input/application_menu" + }, + { + "inputs" : { + "click" : { + "output" : "/actions/generic_left/in/trackpad_click" + }, + "position" : { + "output" : "/actions/generic_left/in/trackpad_position" + }, + "touch" : { + "output" : "/actions/generic_left/in/trackpad_touch" + } + }, + "mode" : "trackpad", + "path" : "/user/hand/left/input/trackpad" + }, + { + "inputs" : { + "click" : { + "output" : "/actions/generic_left/in/sysmenu_click" + } + }, + "mode" : "button", + "path" : "/user/hand/left/input/system" + }, + { + "inputs" : { + "click" : { + "output" : "/actions/generic_left/in/trigger_click" + }, + "pull" : { + "output" : "/actions/generic_left/in/trigger_pull" + } + }, + "mode" : "trigger", + "path" : "/user/hand/left/input/trigger" + }, + { + "inputs" : { + "click" : { + "output" : "/actions/generic_left/in/appmenu_click" + } + }, + "mode" : "button", + "path" : "/user/hand/left/input/x" + }, + { + "inputs" : { + "click" : { + "output" : "/actions/generic_left/in/trackpad_click" + }, + "position" : { + "output" : "/actions/generic_left/in/trackpad_position" + }, + "touch" : { + "output" : "/actions/generic_left/in/trackpad_touch" + } + }, + "mode" : "joystick", + "path" : "/user/hand/left/input/joystick" + } + ] + }, + "/actions/generic_right" : { + "haptics" : [ + { + "output" : "/actions/generic_right/out/haptic", + "path" : "/user/hand/right/output/haptic" + } + ], + "sources" : [ + { + "inputs" : { + "click" : { + "output" : "/actions/generic_right/in/appmenu_click" + } + }, + "mode" : "button", + "path" : "/user/hand/right/input/application_menu" + }, + { + "inputs" : { + "click" : { + "output" : "/actions/generic_right/in/trackpad_click" + }, + "position" : { + "output" : "/actions/generic_right/in/trackpad_position" + }, + "touch" : { + "output" : "/actions/generic_right/in/trackpad_touch" + } + }, + "mode" : "trackpad", + "path" : "/user/hand/right/input/trackpad" + }, + { + "inputs" : { + "click" : { + "output" : "/actions/generic_right/in/trigger_click" + }, + "pull" : { + "output" : "/actions/generic_right/in/trigger_pull" + } + }, + "mode" : "trigger", + "path" : "/user/hand/right/input/trigger" + }, + { + "inputs" : { + "click" : { + "output" : "/actions/generic_right/in/thumbstick_click" + }, + "position" : { + "output" : "/actions/generic_right/in/thumbstick_position" + }, + "touch" : { + "output" : "/actions/generic_right/in/thumbstick_touch" + } + }, + "mode" : "joystick", + "path" : "/user/hand/right/input/joystick" + }, + { + "inputs" : { + "touch" : { + "output" : "/actions/generic_right/in/grip_click" + } + }, + "mode" : "trigger", + "path" : "/user/hand/right/input/grip" + } + ] + } + }, + "category" : "steamvr_input", + "controller_type" : "oculus_touch", + "description" : "Standard Open CASCADE Technology VR bindings for an oculus touch controller", + "options" : {}, + "simulated_actions" : [] +}