aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDEC05EBA <dec05eba@protonmail.com>2019-12-16 00:26:22 +0100
committerDEC05EBA <dec05eba@protonmail.com>2019-12-16 01:04:00 +0100
commitba53125472a21a664de65e1bc5a1594d030034a3 (patch)
treee7f52c8b9ec876b9ff8061aa8631d3c9585339ba /config
initial commit
Diffstat (limited to 'config')
-rw-r--r--config/hellovr_actions.json59
-rw-r--r--config/hellovr_bindings_generic.json94
-rw-r--r--config/hellovr_bindings_vive_controller.json94
3 files changed, 247 insertions, 0 deletions
diff --git a/config/hellovr_actions.json b/config/hellovr_actions.json
new file mode 100644
index 0000000..dab1e9a
--- /dev/null
+++ b/config/hellovr_actions.json
@@ -0,0 +1,59 @@
+{
+ "default_bindings": [
+ {
+ "controller_type" : "vive_controller",
+ "binding_url" : "hellovr_bindings_vive_controller.json"
+ },
+ {
+ "controller_type" : "generic",
+ "binding_url" : "hellovr_bindings_generic.json"
+ }
+ ],
+ "actions": [
+ {
+ "name": "/actions/demo/in/HideCubes",
+ "type": "boolean"
+ },
+ {
+ "name": "/actions/demo/in/HideThisController",
+ "type": "boolean"
+ },
+ {
+ "name": "/actions/demo/in/triggerhaptic",
+ "type": "boolean"
+ },
+ {
+ "name": "/actions/demo/in/AnalogInput",
+ "type": "vector2"
+ },
+ {
+ "name": "/actions/demo/in/Hand_Right",
+ "type": "pose"
+ },
+ {
+ "name": "/actions/demo/in/Hand_Left",
+ "type": "pose"
+ },
+ {
+ "name": "/actions/demo/out/haptic_left",
+ "type": "vibration"
+ },
+ {
+ "name": "/actions/demo/out/haptic_right",
+ "type": "vibration"
+ }
+ ],
+ "localization" : [
+ {
+ "language_tag": "en_US",
+ "/actions/demo/in/HideCubes" : "Hide Cubes",
+ "/actions/demo/in/HideThisController" : "Hide this Controller",
+ "/actions/demo/in/triggerhaptic" : "Trigger Haptic Pulse",
+ "/actions/demo/in/AnalogInput" : "Analog Input",
+ "/actions/demo/in/Hand_Right" : "Right Hand Pose",
+ "/actions/demo/in/Hand_Left" : "Left Hand Pose",
+ "/actions/demo/out/haptic_left" : "Left Haptic Feedback",
+ "/actions/demo/out/haptic_right" : "Right Haptic Feedback"
+ }
+ ]
+}
diff --git a/config/hellovr_bindings_generic.json b/config/hellovr_bindings_generic.json
new file mode 100644
index 0000000..ae5fb46
--- /dev/null
+++ b/config/hellovr_bindings_generic.json
@@ -0,0 +1,94 @@
+{
+ "bindings" : {
+ "/actions/demo" : {
+ "poses" : [
+ {
+ "output" : "/actions/demo/in/hand_left",
+ "path" : "/user/hand/left/pose/raw"
+ },
+ {
+ "output" : "/actions/demo/in/hand_right",
+ "path" : "/user/hand/right/pose/raw"
+ }
+ ],
+ "haptics" : [
+ {
+ "output" : "/actions/demo/out/haptic_right",
+ "path" : "/user/hand/right/output/haptic"
+ },
+ {
+ "output" : "/actions/demo/out/haptic_left",
+ "path" : "/user/hand/left/output/haptic"
+ }
+ ],
+ "sources" : [
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/hidecubes"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/right/input/trigger"
+ },
+ {
+ "inputs" : {
+ "position" : {
+ "output" : "/actions/demo/in/analoginput"
+ }
+ },
+ "mode" : "trackpad",
+ "path" : "/user/hand/right/input/trackpad"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/triggerhaptic"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/right/input/grip"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/hidecubes"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/left/input/trigger"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/triggerhaptic"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/left/input/grip"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/hidethiscontroller"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/left/input/application_menu"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/hidethiscontroller"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/right/input/application_menu"
+ }
+ ]
+ }
+ },
+ "controller_type" : "generic",
+ "description" : "Bindings for the OpenVR SDK \"hellovr_opengl\" demo for a generic controller",
+ "name" : "HelloVR bindings for a generic controller"
+}
diff --git a/config/hellovr_bindings_vive_controller.json b/config/hellovr_bindings_vive_controller.json
new file mode 100644
index 0000000..0a95efd
--- /dev/null
+++ b/config/hellovr_bindings_vive_controller.json
@@ -0,0 +1,94 @@
+{
+ "bindings" : {
+ "/actions/demo" : {
+ "poses" : [
+ {
+ "output" : "/actions/demo/in/hand_left",
+ "path" : "/user/hand/left/pose/raw"
+ },
+ {
+ "output" : "/actions/demo/in/hand_right",
+ "path" : "/user/hand/right/pose/raw"
+ }
+ ],
+ "haptics" : [
+ {
+ "output" : "/actions/demo/out/haptic_right",
+ "path" : "/user/hand/right/output/haptic"
+ },
+ {
+ "output" : "/actions/demo/out/haptic_left",
+ "path" : "/user/hand/left/output/haptic"
+ }
+ ],
+ "sources" : [
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/hidecubes"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/right/input/trigger"
+ },
+ {
+ "inputs" : {
+ "position" : {
+ "output" : "/actions/demo/in/analoginput"
+ }
+ },
+ "mode" : "trackpad",
+ "path" : "/user/hand/right/input/trackpad"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/triggerhaptic"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/right/input/grip"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/hidecubes"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/left/input/trigger"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/triggerhaptic"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/left/input/grip"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/hidethiscontroller"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/left/input/application_menu"
+ },
+ {
+ "inputs" : {
+ "click" : {
+ "output" : "/actions/demo/in/hidethiscontroller"
+ }
+ },
+ "mode" : "button",
+ "path" : "/user/hand/right/input/application_menu"
+ }
+ ]
+ }
+ },
+ "controller_type" : "vive_controller",
+ "description" : "Bindings for the OpenVR SDK \"hellovr_opengl\" demo for the Vive controller",
+ "name" : "HelloVR bindings for Vive Controller"
+}