Skip to content

Commit eb2c542

Browse files
committed
Add default bindings for VRCompositor (dashboard)
1 parent 15a3e23 commit eb2c542

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed

driver/slimevr/resources/input/slimevr_controller_bindings.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,21 @@
3939
"type" : "skeleton",
4040
"skeleton": "/skeleton/hand/left",
4141
"side" : "left",
42-
"binding_image_point" : [50,50]
42+
"binding_image_point": [50,50],
43+
"order" : 3
4344
},
4445
"/input/skeleton/right" : {
4546
"type" : "skeleton",
4647
"skeleton": "/skeleton/hand/right",
4748
"side" : "right",
48-
"binding_image_point" : [50,50]
49+
"binding_image_point": [50,50],
50+
"order" : 3
51+
}
52+
},
53+
"default_bindings": [
54+
{
55+
"app_key": "openvr.component.vrcompositor",
56+
"binding_url": "vrcompositor_bindings_slimevr.json"
4957
}
50-
}
58+
]
5159
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"action_manifest_version": 0,
3+
"alias_info": {},
4+
"app_key": "openvr.component.vrcompositor",
5+
"bindings": {
6+
"/actions/lasermouse": {
7+
"sources": [
8+
{
9+
"inputs": {
10+
"click": {
11+
"output": "/actions/lasermouse/in/LeftClick"
12+
}
13+
},
14+
"mode": "button",
15+
"parameters": {},
16+
"path": "/input/double_tap"
17+
}
18+
]
19+
},
20+
"/actions/system": {
21+
"sources": [
22+
{
23+
"inputs": {},
24+
"mode": "button",
25+
"parameters": {
26+
"haptic_amplitude": "0"
27+
},
28+
"path": "/input/triple_tap"
29+
}
30+
]
31+
}
32+
},
33+
"category": "steamvr_input",
34+
"controller_type": "slimevr_virtual_controller",
35+
"description": "Triple tap to open the dashboard. Double tap to click with the laser mouse.",
36+
"interaction_profile": "",
37+
"name": "Default SteamVR Dashboard bindings for SlimeVR",
38+
"options": {},
39+
"simulated_actions": []
40+
}

0 commit comments

Comments
 (0)