Skip to content

Instantly share code, notes, and snippets.

@smashriot
Created March 5, 2019 21:07
Show Gist options
  • Save smashriot/1251e6db12cefbe7fe793988da14c576 to your computer and use it in GitHub Desktop.
Save smashriot/1251e6db12cefbe7fe793988da14c576 to your computer and use it in GitHub Desktop.
SteamVR Vive Controller Action Bindings
{
"action_sets" : [
{
"name" : "/actions/default",
"usage" : "single"
},
{
"name" : "/actions/platformer",
"usage" : "single"
},
{
"name" : "/actions/buggy",
"usage" : "single"
},
{
"name" : "/actions/mixedreality",
"usage" : "single"
}
],
"actions" : [
{
"name" : "/actions/default/in/InteractUI",
"type" : "boolean"
},
{
"name" : "/actions/default/in/Teleport",
"type" : "boolean"
},
{
"name" : "/actions/default/in/GrabPinch",
"type" : "boolean"
},
{
"name" : "/actions/default/in/GrabGrip",
"type" : "boolean"
},
{
"name" : "/actions/default/in/Pose",
"type" : "pose"
},
{
"name" : "/actions/default/in/SkeletonLeftHand",
"skeleton" : "/skeleton/hand/left",
"type" : "skeleton"
},
{
"name" : "/actions/default/in/SkeletonRightHand",
"skeleton" : "/skeleton/hand/right",
"type" : "skeleton"
},
{
"name" : "/actions/default/in/Squeeze",
"requirement" : "optional",
"type" : "vector1"
},
{
"name" : "/actions/default/in/HeadsetOnHead",
"requirement" : "optional",
"type" : "boolean"
},
{
"name" : "/actions/default/out/Haptic",
"type" : "vibration"
},
{
"name" : "/actions/platformer/in/Move",
"type" : "vector2"
},
{
"name" : "/actions/platformer/in/Jump",
"type" : "boolean"
},
{
"name" : "/actions/buggy/in/Steering",
"type" : "vector2"
},
{
"name" : "/actions/buggy/in/Throttle",
"type" : "vector1"
},
{
"name" : "/actions/buggy/in/Brake",
"type" : "boolean"
},
{
"name" : "/actions/buggy/in/Reset",
"type" : "boolean"
},
{
"name" : "/actions/mixedreality/in/ExternalCamera",
"requirement" : "optional",
"type" : "pose"
}
],
"default_bindings" : [
{
"binding_url" : "application_generated_unity_testing_exe_binding_vive_controller.json",
"controller_type" : "vive_controller"
}
],
"localization" : [
{
"/actions/default/in/GrabGrip" : "Grab Grip",
"/actions/default/in/GrabPinch" : "Grab Pinch",
"/actions/default/in/HeadsetOnHead" : "Headset on head (proximity sensor)",
"/actions/default/in/InteractUI" : "Interact With UI",
"/actions/default/in/Pose" : "Pose",
"/actions/default/in/SkeletonLeftHand" : "Skeleton (Left)",
"/actions/default/in/SkeletonRightHand" : "Skeleton (Right)",
"/actions/default/in/Teleport" : "Teleport",
"/actions/default/out/Haptic" : "Haptic",
"/actions/platformer/in/Jump" : "Jump",
"language_tag" : "en_US"
}
]
}
{
"alias_info" : {},
"app_key" : "application.generated.unity.testing.exe",
"bindings" : {
"/actions/buggy" : {
"sources" : [
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
},
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "trackpad",
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
},
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "trackpad",
"path" : "/user/hand/right/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/application_menu"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/application_menu"
}
]
},
"/actions/default" : {
"chords" : [],
"haptics" : [
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/left/output/haptic"
},
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/right/output/haptic"
}
],
"poses" : [
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/left/pose/raw"
},
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/right/pose/raw"
}
],
"skeleton" : [
{
"output" : "/actions/default/in/skeletonlefthand",
"path" : "/user/hand/left/input/skeleton/left"
},
{
"output" : "/actions/default/in/skeletonrighthand",
"path" : "/user/hand/right/input/skeleton/right"
}
],
"sources" : [
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/interactui"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/teleport"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/grabgrip"
}
},
"mode" : "button",
"parameters" : {
"click_activate_threshold" : "0.05",
"click_deactivate_threshold" : "0",
"force_input" : "force"
},
"path" : "/user/hand/left/input/grip"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/grabpinch"
}
},
"mode" : "button",
"parameters" : {
"click_activate_threshold" : "0.75",
"click_deactivate_threshold" : "0.7",
"force_input" : "value"
},
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/interactui"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/grabpinch"
}
},
"mode" : "button",
"parameters" : {
"click_activate_threshold" : "0.75",
"click_deactivate_threshold" : "0.7"
},
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/teleport"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/grabgrip"
}
},
"mode" : "button",
"parameters" : {
"click_activate_threshold" : "0.05",
"click_deactivate_threshold" : "0",
"force_input" : "force"
},
"path" : "/user/hand/right/input/grip"
},
{
"inputs" : {
"pull" : {
"output" : "/actions/default/in/squeeze"
}
},
"mode" : "trigger",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"pull" : {
"output" : "/actions/default/in/squeeze"
}
},
"mode" : "trigger",
"path" : "/user/hand/right/input/trigger"
}
]
},
"/actions/platformer" : {
"sources" : [
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trackpad"
},
{
"inputs" : {
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "trackpad",
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "trackpad",
"path" : "/user/hand/right/input/trackpad"
}
]
}
},
"controller_type" : "vive_controller",
"description" : "",
"name" : "Test",
"options" : {},
"simulated_actions" : []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment