Skip to content

Commit 674e39a

Browse files
committed
WIP getting SlimeVR hand controllers to work in VR
1 parent df7643d commit 674e39a

15 files changed

+347
-4440
lines changed

driver/slimevr/resources/icons/slimevr_tracker_icon.svg

Lines changed: 157 additions & 0 deletions
Loading

driver/slimevr/resources/input/example_controller_bindings.json

Lines changed: 0 additions & 83 deletions
This file was deleted.

driver/slimevr/resources/input/example_controller_left.svg

Lines changed: 0 additions & 1650 deletions
This file was deleted.

driver/slimevr/resources/input/example_controller_right.svg

Lines changed: 0 additions & 1651 deletions
This file was deleted.

driver/slimevr/resources/input/example_tracker_bindings.json

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"jsonid": "input_profile",
3+
"controller_type": "slimevr_virtual_controller",
4+
"device_class": "TrackedDeviceClass_Controller",
5+
"resource_root": "slimevr",
6+
"driver_name": "slimevr",
7+
"input_bindingui_mode": "controller_handed",
8+
"should_show_binding_errors": true,
9+
"input_bindingui_left": {
10+
"image": "{slimevr}/icons/slimevr_tracker_icon.svg"
11+
},
12+
"input_bindingui_right": {
13+
"image": "{slimevr}/icons/slimevr_tracker_icon.svg"
14+
},
15+
"input_source": {
16+
"/pose/raw" : {
17+
"type" : "pose",
18+
"binding_image_point" : [50,50]
19+
},
20+
"/output/haptic": {
21+
"type": "vibration",
22+
"binding_image_point": [50,50]
23+
},
24+
"/input/tap": {
25+
"type": "button",
26+
"click": true,
27+
"touch" : false,
28+
"binding_image_point": [50,50],
29+
"order" : 1
30+
},
31+
"/input/double_tap": {
32+
"type": "button",
33+
"click": true,
34+
"touch" : false,
35+
"binding_image_point": [50,50],
36+
"order" : 2
37+
},
38+
"/input/triple_tap": {
39+
"type": "button",
40+
"click": true,
41+
"touch" : false,
42+
"binding_image_point": [50,50],
43+
"order" : 3
44+
},
45+
"/input/skeleton/left" : {
46+
"type" : "skeleton",
47+
"skeleton": "/skeleton/hand/left",
48+
"side" : "left",
49+
"binding_image_point" : [50,50]
50+
},
51+
"/input/skeleton/right" : {
52+
"type" : "skeleton",
53+
"skeleton": "/skeleton/hand/right",
54+
"side" : "right",
55+
"binding_image_point" : [50,50]
56+
}
57+
}
58+
}
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
[
22
{
33
"language_tag": "en_US",
4-
"example_controller": "Example Controller",
5-
"example_tracker": "Example Tracker",
6-
"example_basestation": "Example BaseStation",
7-
"/input/a": "A Button",
8-
"/input/b": "B Button",
9-
"/input/system": "System Button",
10-
"/input/trackpad": "Trackpad",
11-
"/input/joystick": "Joystick",
12-
"/input/skeleton": "Skeleton",
13-
"/input/trigger": "Trigger",
14-
"/output/haptic": "Haptic"
4+
"slimevr": "SlimeVR",
5+
"slimevr_virtual_controller": "SlimeVR Virtual Controller",
6+
"/input/tap": "Single tap",
7+
"/input/double_tap": "Double tap",
8+
"/input/triple_tap": "Triple tap"
159
}
1610
]
Binary file not shown.

driver/slimevr/resources/rendermodels/example_controller/example_controller.mtl

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)