Files
pymol-open-source/data/openvr/bindings_vive_controller.json
Thomas Holder 276640cd29 Port EPAM's VR fork to PyMOL 2.4
Porting the essential parts of EPAM System's "openvr" branch to the
master branch.

Original authors:
Natalia Smirnova, EPAM Systems, Inc.
Pavel Smirnov, EPAM Systems, Inc.

Original fork:
https://github.com/epam/pymol-open-source/tree/openvr

Adjustments:
- Make feature optional with "--openvr" compile option
- Python 3 support
- Remove C++11 workarounds
- Exclude build system changes

Co-authored-by: Natalia Smirnova <Natalia_Smirnova@epam.com>
Co-authored-by: Pavel Smirnov <pavel_smirnov1@epam.com>
2019-11-11 00:50:01 -08:00

120 lines
2.9 KiB
JSON

{
"app_key": "system.generated.python.exe",
"controller_type": "vive_controller",
"name": "Vive Controller Bindings",
"description": "Default Vive Controller bindings for PyMOL VR",
"bindings": {
"/actions/pymol": {
"poses": [{
"path": "/user/hand/left/pose/raw",
"output": "/actions/pymol/in/LeftHand"
}, {
"path": "/user/hand/right/pose/raw",
"output": "/actions/pymol/in/RightHand"
}],
"sources": [{
"path": "/user/hand/left/input/grip",
"mode": "button",
"inputs": {
"click": {
"output": "/actions/pymol/in/LGrip"
}
}
}, {
"path": "/user/hand/right/input/grip",
"mode": "button",
"inputs": {
"click": {
"output": "/actions/pymol/in/RGrip"
}
}
}, {
"path": "/user/hand/right/input/application_menu",
"mode": "button",
"inputs": {
"click": {
"output": "/actions/pymol/in/ToggleMenu"
}
}
}, {
"path": "/user/hand/left/input/application_menu",
"mode": "button",
"inputs": {
"click": {
"output": "/actions/pymol/in/ToggleMenu"
}
}
}, {
"path": "/user/hand/right/input/trackpad",
"mode": "trackpad",
"inputs": {
"touch": {
"output": "/actions/pymol/in/Laser"
}
}
}, {
"path": "/user/hand/left/input/trackpad",
"mode": "trackpad",
"inputs": {
"touch": {
"output": "/actions/pymol/in/Laser"
}
}
}, {
"path": "/user/hand/right/input/trackpad",
"mode": "dpad_click",
"parameters": {
"deadzone_pct": "50",
"overlap_pct": "0"
},
"inputs": {
"west": {
"output": "/actions/pymol/in/Action1"
},
"center": {
"output": "/actions/pymol/in/Action2"
},
"east": {
"output": "/actions/pymol/in/Action3"
},
"north": {
"output": "/actions/pymol/in/ActionSetPrev"
},
"south": {
"output": "/actions/pymol/in/ActionSetNext"
}
}
}, {
"path": "/user/hand/left/input/trackpad",
"mode": "dpad_click",
"parameters": {
"deadzone_pct": "50",
"overlap_pct": "0"
},
"inputs": {
"west": {
"output": "/actions/pymol/in/Action1"
},
"center": {
"output": "/actions/pymol/in/Action2"
},
"east": {
"output": "/actions/pymol/in/Action3"
},
"north": {
"output": "/actions/pymol/in/ActionSetPrev"
},
"south": {
"output": "/actions/pymol/in/ActionSetNext"
}
}
}]
}
}
}