Skip to content

Commit aba3225

Browse files
authored
Merge pull request #279 from immersive-web/galaxy-xr
Add Samsung Galaxy XR controller assets
2 parents e3143e2 + 4dc755a commit aba3225

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed
4.98 MB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"profileId" : "samsung-galaxyxr",
3+
"overrides" : {}
4+
}
4.98 MB
Binary file not shown.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"profileId": "samsung-galaxyxr",
3+
"fallbackProfileIds": [ "samsung-galaxyxr", "generic-trigger-squeeze-thumbstick"],
4+
"layouts": {
5+
"left": {
6+
"selectComponentId": "xr-standard-trigger",
7+
"components": {
8+
"xr-standard-trigger": { "type": "trigger" },
9+
"xr-standard-squeeze": { "type": "squeeze" },
10+
"xr-standard-thumbstick": { "type": "thumbstick" },
11+
"x-button" : { "type": "button" },
12+
"y-button" : { "type": "button" },
13+
"thumbrest" : { "type": "button" },
14+
"menu" : { "type": "button" }
15+
},
16+
"gamepad": {
17+
"mapping": "xr-standard",
18+
"buttons": [
19+
"xr-standard-trigger",
20+
"xr-standard-squeeze",
21+
null,
22+
"xr-standard-thumbstick",
23+
"x-button",
24+
"y-button",
25+
"thumbrest",
26+
"menu"
27+
],
28+
"axes":[
29+
null,
30+
null,
31+
{ "componentId": "xr-standard-thumbstick", "axis": "x-axis"},
32+
{ "componentId": "xr-standard-thumbstick", "axis": "y-axis"}
33+
]
34+
}
35+
},
36+
"right": {
37+
"selectComponentId": "xr-standard-trigger",
38+
"components": {
39+
"xr-standard-trigger": { "type": "trigger" },
40+
"xr-standard-squeeze": { "type": "squeeze" },
41+
"xr-standard-thumbstick": { "type": "thumbstick" },
42+
"a-button" : { "type": "button" },
43+
"b-button" : { "type": "button" },
44+
"thumbrest" : { "type": "button" }
45+
},
46+
"gamepad": {
47+
"mapping": "xr-standard",
48+
"buttons": [
49+
"xr-standard-trigger",
50+
"xr-standard-squeeze",
51+
null,
52+
"xr-standard-thumbstick",
53+
"a-button",
54+
"b-button",
55+
"thumbrest"
56+
],
57+
"axes":[
58+
null,
59+
null,
60+
{ "componentId": "xr-standard-thumbstick", "axis": "x-axis"},
61+
{ "componentId": "xr-standard-thumbstick", "axis": "y-axis"}
62+
]
63+
}
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)