Skip to content

Commit 483489b

Browse files
authored
Merge pull request #274 from cabanier/micro-gestures
Add support for micro gestures
2 parents 3a550ae + 7de841d commit 483489b

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

packages/registry/profiles/oculus/oculus-hand.json

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
"selectComponentId": "xr-standard-trigger",
1010
"components": {
1111
"xr-standard-trigger": { "type": "trigger" },
12-
"menu": { "type": "button" }
12+
"menu": { "type": "button" },
13+
"swipe-left": { "type": "button" },
14+
"swipe-right": { "type": "button" },
15+
"swipe-forward": { "type": "button" },
16+
"swipe-backward": { "type": "button" },
17+
"tap-thumb": { "type": "button" }
1318
},
1419
"gamepad": {
1520
"mapping": "xr-standard",
@@ -18,20 +23,39 @@
1823
null,
1924
null,
2025
null,
21-
"menu"
26+
"menu",
27+
"swipe-left",
28+
"swipe-right",
29+
"swipe-forward",
30+
"swipe-backward",
31+
"tap-thumb"
2232
],
2333
"axes":[]
2434
}
2535
},
2636
"right" : {
2737
"selectComponentId": "xr-standard-trigger",
2838
"components": {
29-
"xr-standard-trigger": { "type": "trigger" }
39+
"xr-standard-trigger": { "type": "trigger" },
40+
"swipe-left": { "type": "button" },
41+
"swipe-right": { "type": "button" },
42+
"swipe-forward": { "type": "button" },
43+
"swipe-backward": { "type": "button" },
44+
"tap-thumb": { "type": "button" }
3045
},
3146
"gamepad": {
3247
"mapping": "xr-standard",
3348
"buttons": [
34-
"xr-standard-trigger"
49+
"xr-standard-trigger",
50+
null,
51+
null,
52+
null,
53+
null,
54+
"swipe-left",
55+
"swipe-right",
56+
"swipe-forward",
57+
"swipe-backward",
58+
"tap-thumb"
3559
],
3660
"axes":[]
3761
}

0 commit comments

Comments
 (0)