mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0032959: Visualization, OpenVR - add Oculus Touch controller bindings
This commit is contained in:
parent
e976df2329
commit
267738fc40
@ -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
|
||||
|
160
src/XRResources/occtvr_bindings_touch.json
Normal file
160
src/XRResources/occtvr_bindings_touch.json
Normal file
@ -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" : []
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user