Skip to content

Commit c0ed71c

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

File tree

2 files changed

+75
-7
lines changed

2 files changed

+75
-7
lines changed

driver/slimevr/resources/input/slimevr_controller_bindings.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,43 @@
1515
"input_source": {
1616
"/pose/raw" : {
1717
"type" : "pose",
18-
"binding_image_point" : [50,50]
18+
"binding_image_point" : [80,80]
1919
},
2020
"/output/haptic": {
2121
"type": "vibration",
22-
"binding_image_point": [50,50]
22+
"binding_image_point": [80,80]
2323
},
2424
"/input/double_tap": {
2525
"type": "button",
2626
"click": true,
2727
"touch" : false,
28-
"binding_image_point": [50,50],
28+
"binding_image_point": [80,80],
2929
"order" : 1
3030
},
3131
"/input/triple_tap": {
3232
"type": "button",
3333
"click": true,
3434
"touch" : false,
35-
"binding_image_point": [50,50],
35+
"binding_image_point": [80,80],
3636
"order" : 2
3737
},
3838
"/input/skeleton/left" : {
3939
"type" : "skeleton",
4040
"skeleton": "/skeleton/hand/left",
4141
"side" : "left",
42-
"binding_image_point" : [50,50]
42+
"binding_image_point" : [80,80]
4343
},
4444
"/input/skeleton/right" : {
4545
"type" : "skeleton",
4646
"skeleton": "/skeleton/hand/right",
4747
"side" : "right",
48-
"binding_image_point" : [50,50]
48+
"binding_image_point" : [80,80]
4949
}
50-
}
50+
},
51+
"default_bindings": [
52+
{
53+
"app_key": "openvr.component.vrcompositor",
54+
"binding_url": "vrcompositor_bindings_slimevr.json"
55+
}
56+
]
5157
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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": "/user/hand/left/input/double_tap"
17+
},
18+
{
19+
"inputs": {
20+
"click": {
21+
"output": "/actions/lasermouse/in/LeftClick"
22+
}
23+
},
24+
"mode": "button",
25+
"parameters": {},
26+
"path": "/user/hand/right/input/double_tap"
27+
}
28+
]
29+
},
30+
"/actions/system": {
31+
"sources": [
32+
{
33+
"inputs": {
34+
"click": {
35+
"output": "/actions/system/in/ToggleDashboard"
36+
}
37+
},
38+
"mode": "button",
39+
"parameters": {},
40+
"path": "/user/hand/left/input/triple_tap"
41+
},
42+
{
43+
"inputs": {
44+
"click": {
45+
"output": "/actions/system/in/ToggleDashboard"
46+
}
47+
},
48+
"mode": "button",
49+
"parameters": {},
50+
"path": "/user/hand/right/input/triple_tap"
51+
}
52+
]
53+
}
54+
},
55+
"category": "steamvr_input",
56+
"controller_type": "slimevr_virtual_controller",
57+
"description": "Triple tap to toggle the dashboard. Double tap to click with the laser mouse.",
58+
"interaction_profile": "",
59+
"name": "Default SteamVR Dashboard bindings for SlimeVR",
60+
"options": {},
61+
"simulated_actions": []
62+
}

0 commit comments

Comments
 (0)