profile.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. {
  2. "profileId": "valve-index",
  3. "fallbackProfileIds": [
  4. "generic-trigger-squeeze-touchpad-thumbstick"
  5. ],
  6. "layouts": {
  7. "left": {
  8. "selectComponentId": "xr-standard-trigger",
  9. "components": {
  10. "xr-standard-trigger": {
  11. "type": "trigger",
  12. "gamepadIndices": {
  13. "button": 0
  14. },
  15. "rootNodeName": "xr_standard_trigger",
  16. "visualResponses": {
  17. "xr_standard_trigger_pressed": {
  18. "componentProperty": "button",
  19. "states": [
  20. "default",
  21. "touched",
  22. "pressed"
  23. ],
  24. "valueNodeProperty": "transform",
  25. "valueNodeName": "xr_standard_trigger_pressed_value",
  26. "minNodeName": "xr_standard_trigger_pressed_min",
  27. "maxNodeName": "xr_standard_trigger_pressed_max"
  28. }
  29. }
  30. },
  31. "xr-standard-squeeze": {
  32. "type": "squeeze",
  33. "gamepadIndices": {
  34. "button": 1
  35. },
  36. "rootNodeName": "xr_standard_squeeze",
  37. "visualResponses": {
  38. "xr_standard_squeeze_pressed": {
  39. "componentProperty": "button",
  40. "states": [
  41. "default",
  42. "touched",
  43. "pressed"
  44. ],
  45. "valueNodeProperty": "transform",
  46. "valueNodeName": "xr_standard_squeeze_pressed_value",
  47. "minNodeName": "xr_standard_squeeze_pressed_min",
  48. "maxNodeName": "xr_standard_squeeze_pressed_max"
  49. }
  50. }
  51. },
  52. "xr-standard-touchpad": {
  53. "type": "touchpad",
  54. "gamepadIndices": {
  55. "button": 2,
  56. "xAxis": 0,
  57. "yAxis": 1
  58. },
  59. "rootNodeName": "xr_standard_touchpad",
  60. "visualResponses": {
  61. "xr_standard_touchpad_pressed": {
  62. "componentProperty": "button",
  63. "states": [
  64. "default",
  65. "touched",
  66. "pressed"
  67. ],
  68. "valueNodeProperty": "transform",
  69. "valueNodeName": "xr_standard_touchpad_pressed_value",
  70. "minNodeName": "xr_standard_touchpad_pressed_min",
  71. "maxNodeName": "xr_standard_touchpad_pressed_max"
  72. },
  73. "xr_standard_touchpad_xaxis_pressed": {
  74. "componentProperty": "xAxis",
  75. "states": [
  76. "default",
  77. "touched",
  78. "pressed"
  79. ],
  80. "valueNodeProperty": "transform",
  81. "valueNodeName": "xr_standard_touchpad_xaxis_pressed_value",
  82. "minNodeName": "xr_standard_touchpad_xaxis_pressed_min",
  83. "maxNodeName": "xr_standard_touchpad_xaxis_pressed_max"
  84. },
  85. "xr_standard_touchpad_yaxis_pressed": {
  86. "componentProperty": "yAxis",
  87. "states": [
  88. "default",
  89. "touched",
  90. "pressed"
  91. ],
  92. "valueNodeProperty": "transform",
  93. "valueNodeName": "xr_standard_touchpad_yaxis_pressed_value",
  94. "minNodeName": "xr_standard_touchpad_yaxis_pressed_min",
  95. "maxNodeName": "xr_standard_touchpad_yaxis_pressed_max"
  96. },
  97. "xr_standard_touchpad_xaxis_touched": {
  98. "componentProperty": "xAxis",
  99. "states": [
  100. "default",
  101. "touched",
  102. "pressed"
  103. ],
  104. "valueNodeProperty": "transform",
  105. "valueNodeName": "xr_standard_touchpad_xaxis_touched_value",
  106. "minNodeName": "xr_standard_touchpad_xaxis_touched_min",
  107. "maxNodeName": "xr_standard_touchpad_xaxis_touched_max"
  108. },
  109. "xr_standard_touchpad_yaxis_touched": {
  110. "componentProperty": "yAxis",
  111. "states": [
  112. "default",
  113. "touched",
  114. "pressed"
  115. ],
  116. "valueNodeProperty": "transform",
  117. "valueNodeName": "xr_standard_touchpad_yaxis_touched_value",
  118. "minNodeName": "xr_standard_touchpad_yaxis_touched_min",
  119. "maxNodeName": "xr_standard_touchpad_yaxis_touched_max"
  120. },
  121. "xr_standard_touchpad_axes_touched": {
  122. "componentProperty": "state",
  123. "states": [
  124. "touched",
  125. "pressed"
  126. ],
  127. "valueNodeProperty": "visibility",
  128. "valueNodeName": "xr_standard_touchpad_axes_touched_value"
  129. }
  130. },
  131. "touchPointNodeName": "xr_standard_touchpad_axes_touched_value"
  132. },
  133. "xr-standard-thumbstick": {
  134. "type": "thumbstick",
  135. "gamepadIndices": {
  136. "button": 3,
  137. "xAxis": 2,
  138. "yAxis": 3
  139. },
  140. "rootNodeName": "xr_standard_thumbstick",
  141. "visualResponses": {
  142. "xr_standard_thumbstick_pressed": {
  143. "componentProperty": "button",
  144. "states": [
  145. "default",
  146. "touched",
  147. "pressed"
  148. ],
  149. "valueNodeProperty": "transform",
  150. "valueNodeName": "xr_standard_thumbstick_pressed_value",
  151. "minNodeName": "xr_standard_thumbstick_pressed_min",
  152. "maxNodeName": "xr_standard_thumbstick_pressed_max"
  153. },
  154. "xr_standard_thumbstick_xaxis_pressed": {
  155. "componentProperty": "xAxis",
  156. "states": [
  157. "default",
  158. "touched",
  159. "pressed"
  160. ],
  161. "valueNodeProperty": "transform",
  162. "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value",
  163. "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min",
  164. "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max"
  165. },
  166. "xr_standard_thumbstick_yaxis_pressed": {
  167. "componentProperty": "yAxis",
  168. "states": [
  169. "default",
  170. "touched",
  171. "pressed"
  172. ],
  173. "valueNodeProperty": "transform",
  174. "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value",
  175. "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min",
  176. "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max"
  177. }
  178. }
  179. },
  180. "a-button": {
  181. "type": "button",
  182. "gamepadIndices": {
  183. "button": 4
  184. },
  185. "rootNodeName": "a_button",
  186. "visualResponses": {
  187. "a_button_pressed": {
  188. "componentProperty": "button",
  189. "states": [
  190. "default",
  191. "touched",
  192. "pressed"
  193. ],
  194. "valueNodeProperty": "transform",
  195. "valueNodeName": "a_button_pressed_value",
  196. "minNodeName": "a_button_pressed_min",
  197. "maxNodeName": "a_button_pressed_max"
  198. }
  199. }
  200. }
  201. },
  202. "gamepadMapping": "xr-standard",
  203. "rootNodeName": "valve-index-left",
  204. "assetPath": "left.glb"
  205. },
  206. "right": {
  207. "selectComponentId": "xr-standard-trigger",
  208. "components": {
  209. "xr-standard-trigger": {
  210. "type": "trigger",
  211. "gamepadIndices": {
  212. "button": 0
  213. },
  214. "rootNodeName": "xr_standard_trigger",
  215. "visualResponses": {
  216. "xr_standard_trigger_pressed": {
  217. "componentProperty": "button",
  218. "states": [
  219. "default",
  220. "touched",
  221. "pressed"
  222. ],
  223. "valueNodeProperty": "transform",
  224. "valueNodeName": "xr_standard_trigger_pressed_value",
  225. "minNodeName": "xr_standard_trigger_pressed_min",
  226. "maxNodeName": "xr_standard_trigger_pressed_max"
  227. }
  228. }
  229. },
  230. "xr-standard-squeeze": {
  231. "type": "squeeze",
  232. "gamepadIndices": {
  233. "button": 1
  234. },
  235. "rootNodeName": "xr_standard_squeeze",
  236. "visualResponses": {
  237. "xr_standard_squeeze_pressed": {
  238. "componentProperty": "button",
  239. "states": [
  240. "default",
  241. "touched",
  242. "pressed"
  243. ],
  244. "valueNodeProperty": "transform",
  245. "valueNodeName": "xr_standard_squeeze_pressed_value",
  246. "minNodeName": "xr_standard_squeeze_pressed_min",
  247. "maxNodeName": "xr_standard_squeeze_pressed_max"
  248. }
  249. }
  250. },
  251. "xr-standard-touchpad": {
  252. "type": "touchpad",
  253. "gamepadIndices": {
  254. "button": 2,
  255. "xAxis": 0,
  256. "yAxis": 1
  257. },
  258. "rootNodeName": "xr_standard_touchpad",
  259. "visualResponses": {
  260. "xr_standard_touchpad_pressed": {
  261. "componentProperty": "button",
  262. "states": [
  263. "default",
  264. "touched",
  265. "pressed"
  266. ],
  267. "valueNodeProperty": "transform",
  268. "valueNodeName": "xr_standard_touchpad_pressed_value",
  269. "minNodeName": "xr_standard_touchpad_pressed_min",
  270. "maxNodeName": "xr_standard_touchpad_pressed_max"
  271. },
  272. "xr_standard_touchpad_xaxis_pressed": {
  273. "componentProperty": "xAxis",
  274. "states": [
  275. "default",
  276. "touched",
  277. "pressed"
  278. ],
  279. "valueNodeProperty": "transform",
  280. "valueNodeName": "xr_standard_touchpad_xaxis_pressed_value",
  281. "minNodeName": "xr_standard_touchpad_xaxis_pressed_min",
  282. "maxNodeName": "xr_standard_touchpad_xaxis_pressed_max"
  283. },
  284. "xr_standard_touchpad_yaxis_pressed": {
  285. "componentProperty": "yAxis",
  286. "states": [
  287. "default",
  288. "touched",
  289. "pressed"
  290. ],
  291. "valueNodeProperty": "transform",
  292. "valueNodeName": "xr_standard_touchpad_yaxis_pressed_value",
  293. "minNodeName": "xr_standard_touchpad_yaxis_pressed_min",
  294. "maxNodeName": "xr_standard_touchpad_yaxis_pressed_max"
  295. },
  296. "xr_standard_touchpad_xaxis_touched": {
  297. "componentProperty": "xAxis",
  298. "states": [
  299. "default",
  300. "touched",
  301. "pressed"
  302. ],
  303. "valueNodeProperty": "transform",
  304. "valueNodeName": "xr_standard_touchpad_xaxis_touched_value",
  305. "minNodeName": "xr_standard_touchpad_xaxis_touched_min",
  306. "maxNodeName": "xr_standard_touchpad_xaxis_touched_max"
  307. },
  308. "xr_standard_touchpad_yaxis_touched": {
  309. "componentProperty": "yAxis",
  310. "states": [
  311. "default",
  312. "touched",
  313. "pressed"
  314. ],
  315. "valueNodeProperty": "transform",
  316. "valueNodeName": "xr_standard_touchpad_yaxis_touched_value",
  317. "minNodeName": "xr_standard_touchpad_yaxis_touched_min",
  318. "maxNodeName": "xr_standard_touchpad_yaxis_touched_max"
  319. },
  320. "xr_standard_touchpad_axes_touched": {
  321. "componentProperty": "state",
  322. "states": [
  323. "touched",
  324. "pressed"
  325. ],
  326. "valueNodeProperty": "visibility",
  327. "valueNodeName": "xr_standard_touchpad_axes_touched_value"
  328. }
  329. },
  330. "touchPointNodeName": "xr_standard_touchpad_axes_touched_value"
  331. },
  332. "xr-standard-thumbstick": {
  333. "type": "thumbstick",
  334. "gamepadIndices": {
  335. "button": 3,
  336. "xAxis": 2,
  337. "yAxis": 3
  338. },
  339. "rootNodeName": "xr_standard_thumbstick",
  340. "visualResponses": {
  341. "xr_standard_thumbstick_pressed": {
  342. "componentProperty": "button",
  343. "states": [
  344. "default",
  345. "touched",
  346. "pressed"
  347. ],
  348. "valueNodeProperty": "transform",
  349. "valueNodeName": "xr_standard_thumbstick_pressed_value",
  350. "minNodeName": "xr_standard_thumbstick_pressed_min",
  351. "maxNodeName": "xr_standard_thumbstick_pressed_max"
  352. },
  353. "xr_standard_thumbstick_xaxis_pressed": {
  354. "componentProperty": "xAxis",
  355. "states": [
  356. "default",
  357. "touched",
  358. "pressed"
  359. ],
  360. "valueNodeProperty": "transform",
  361. "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value",
  362. "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min",
  363. "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max"
  364. },
  365. "xr_standard_thumbstick_yaxis_pressed": {
  366. "componentProperty": "yAxis",
  367. "states": [
  368. "default",
  369. "touched",
  370. "pressed"
  371. ],
  372. "valueNodeProperty": "transform",
  373. "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value",
  374. "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min",
  375. "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max"
  376. }
  377. }
  378. },
  379. "a-button": {
  380. "type": "button",
  381. "gamepadIndices": {
  382. "button": 4
  383. },
  384. "rootNodeName": "a_button",
  385. "visualResponses": {
  386. "a_button_pressed": {
  387. "componentProperty": "button",
  388. "states": [
  389. "default",
  390. "touched",
  391. "pressed"
  392. ],
  393. "valueNodeProperty": "transform",
  394. "valueNodeName": "a_button_pressed_value",
  395. "minNodeName": "a_button_pressed_min",
  396. "maxNodeName": "a_button_pressed_max"
  397. }
  398. }
  399. }
  400. },
  401. "gamepadMapping": "xr-standard",
  402. "rootNodeName": "valve-index-right",
  403. "assetPath": "right.glb"
  404. }
  405. }
  406. }