_schema.json 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "$id": "https://ryujinx.org/_schema/config.json",
  4. "type": "object",
  5. "title": "Ryujinx Configuration Schema",
  6. "required": [
  7. "graphics_shaders_dump_path",
  8. "logging_enable_debug",
  9. "logging_enable_stub",
  10. "logging_enable_info",
  11. "logging_enable_warn",
  12. "logging_enable_error",
  13. "logging_enable_guest",
  14. "logging_enable_fs_access_log",
  15. "logging_filtered_classes",
  16. "enable_file_log",
  17. "system_language",
  18. "docked_mode",
  19. "enable_vsync",
  20. "enable_multicore_scheduling",
  21. "enable_fs_integrity_checks",
  22. "fs_global_access_log_mode",
  23. "controller_type",
  24. "enable_keyboard",
  25. "keyboard_controls",
  26. "joystick_controls"
  27. ],
  28. "definitions": {
  29. "key": {
  30. "type": "string",
  31. "enum": [
  32. "ShiftLeft",
  33. "LShift",
  34. "ShiftRight",
  35. "RShift",
  36. "ControlLeft",
  37. "LControl",
  38. "ControlRight",
  39. "RControl",
  40. "AltLeft",
  41. "LAlt",
  42. "AltRight",
  43. "RAlt",
  44. "WinLeft",
  45. "LWin",
  46. "WinRight",
  47. "RWin",
  48. "Menu",
  49. "F1",
  50. "F2",
  51. "F3",
  52. "F4",
  53. "F5",
  54. "F6",
  55. "F7",
  56. "F8",
  57. "F9",
  58. "F10",
  59. "F11",
  60. "F12",
  61. "F13",
  62. "F14",
  63. "F15",
  64. "F16",
  65. "F17",
  66. "F18",
  67. "F19",
  68. "F20",
  69. "F21",
  70. "F22",
  71. "F23",
  72. "F24",
  73. "F25",
  74. "F26",
  75. "F27",
  76. "F28",
  77. "F29",
  78. "F30",
  79. "F31",
  80. "F32",
  81. "F33",
  82. "F34",
  83. "F35",
  84. "Up",
  85. "Down",
  86. "Left",
  87. "Right",
  88. "Enter",
  89. "Escape",
  90. "Space",
  91. "Tab",
  92. "BackSpace",
  93. "Back",
  94. "Insert",
  95. "Delete",
  96. "PageUp",
  97. "PageDown",
  98. "Home",
  99. "End",
  100. "CapsLock",
  101. "ScrollLock",
  102. "PrintScreen",
  103. "Pause",
  104. "NumLock",
  105. "Clear",
  106. "Sleep",
  107. "Keypad0",
  108. "Keypad1",
  109. "Keypad2",
  110. "Keypad3",
  111. "Keypad4",
  112. "Keypad5",
  113. "Keypad6",
  114. "Keypad7",
  115. "Keypad8",
  116. "Keypad9",
  117. "KeypadDivide",
  118. "KeypadMultiply",
  119. "KeypadSubtract",
  120. "KeypadMinus",
  121. "KeypadAdd",
  122. "KeypadPlus",
  123. "KeypadDecimal",
  124. "KeypadPeriod",
  125. "KeypadEnter",
  126. "A",
  127. "B",
  128. "C",
  129. "D",
  130. "E",
  131. "F",
  132. "G",
  133. "H",
  134. "I",
  135. "J",
  136. "K",
  137. "L",
  138. "M",
  139. "N",
  140. "O",
  141. "P",
  142. "Q",
  143. "R",
  144. "S",
  145. "T",
  146. "U",
  147. "V",
  148. "W",
  149. "X",
  150. "Y",
  151. "Z",
  152. "Number0",
  153. "Number1",
  154. "Number2",
  155. "Number3",
  156. "Number4",
  157. "Number5",
  158. "Number6",
  159. "Number7",
  160. "Number8",
  161. "Number9",
  162. "Tilde",
  163. "Grave",
  164. "Minus",
  165. "Plus",
  166. "BracketLeft",
  167. "LBracket",
  168. "BracketRight",
  169. "RBracket",
  170. "Semicolon",
  171. "Quote",
  172. "Comma",
  173. "Period",
  174. "Slash",
  175. "BackSlash",
  176. "NonUSBackSlash",
  177. "LastKey"
  178. ]
  179. },
  180. "input": {
  181. "type": "string",
  182. "enum": [
  183. "Button0",
  184. "Button1",
  185. "Button2",
  186. "Button3",
  187. "Button4",
  188. "Button5",
  189. "Button6",
  190. "Button7",
  191. "Button8",
  192. "Button9",
  193. "Button10",
  194. "Button11",
  195. "Button12",
  196. "Button13",
  197. "Button14",
  198. "Button15",
  199. "Button16",
  200. "Button17",
  201. "Button18",
  202. "Button19",
  203. "Button20",
  204. "Axis0",
  205. "Axis1",
  206. "Axis2",
  207. "Axis3",
  208. "Axis4",
  209. "Axis5",
  210. "Hat0Up",
  211. "Hat0Down",
  212. "Hat0Left",
  213. "Hat0Right",
  214. "Hat1Up",
  215. "Hat1Down",
  216. "Hat1Left",
  217. "Hat1Right",
  218. "Hat2Up",
  219. "Hat2Down",
  220. "Hat2Left",
  221. "Hat2Right"
  222. ]
  223. }
  224. },
  225. "properties": {
  226. "graphics_shaders_dump_path": {
  227. "$id": "#/properties/graphics_shaders_dump_path",
  228. "type": "string",
  229. "title": "Graphics Shaders Dump Path",
  230. "description": "Dumps shaders in this local directory",
  231. "default": "",
  232. "examples": [
  233. "C:\\ShaderDumps"
  234. ]
  235. },
  236. "logging_enable_debug": {
  237. "$id": "#/properties/logging_enable_debug",
  238. "type": "boolean",
  239. "title": "Logging Enable Debug",
  240. "description": "Enables printing debug log messages",
  241. "default": false,
  242. "examples": [
  243. true,
  244. false
  245. ]
  246. },
  247. "logging_enable_stub": {
  248. "$id": "#/properties/logging_enable_stub",
  249. "type": "boolean",
  250. "title": "Logging Enable Stub",
  251. "description": "Enables printing stub log messages",
  252. "default": true,
  253. "examples": [
  254. true,
  255. false
  256. ]
  257. },
  258. "logging_enable_info": {
  259. "$id": "#/properties/logging_enable_info",
  260. "type": "boolean",
  261. "title": "Logging Enable Info",
  262. "description": "Enables printing info log messages",
  263. "default": true,
  264. "examples": [
  265. true,
  266. false
  267. ]
  268. },
  269. "logging_enable_warn": {
  270. "$id": "#/properties/logging_enable_warn",
  271. "type": "boolean",
  272. "title": "Logging Enable Warn",
  273. "description": "Enables printing warning log messages",
  274. "default": true,
  275. "examples": [
  276. true,
  277. false
  278. ]
  279. },
  280. "logging_enable_error": {
  281. "$id": "#/properties/logging_enable_error",
  282. "type": "boolean",
  283. "title": "Logging Enable Error",
  284. "description": "Enables printing error log messages",
  285. "default": true,
  286. "examples": [
  287. true,
  288. false
  289. ]
  290. },
  291. "logging_enable_guest": {
  292. "$id": "#/properties/logging_enable_guest",
  293. "type": "boolean",
  294. "title": "Logging Enable Guest",
  295. "description": "Enables printing guest log messages",
  296. "default": true,
  297. "examples": [
  298. true,
  299. false
  300. ]
  301. },
  302. "logging_enable_fs_access": {
  303. "$id": "#/properties/logging_enable_fs_access_log",
  304. "type": "boolean",
  305. "title": "Logging Enable FS Access Log",
  306. "description": "Enables printing FS access log messages",
  307. "default": true,
  308. "examples": [
  309. true,
  310. false
  311. ]
  312. },
  313. "logging_filtered_classes": {
  314. "$id": "#/properties/logging_filtered_classes",
  315. "type": "array",
  316. "title": "Logging Filtered Classes",
  317. "description": "Controls which log messages are written to the log targets",
  318. "items": {
  319. "type": "string",
  320. "enum": [
  321. "Application",
  322. "Audio",
  323. "Cpu",
  324. "Font",
  325. "Emulation",
  326. "Gpu",
  327. "Hid",
  328. "Kernel",
  329. "KernelIpc",
  330. "KernelScheduler",
  331. "KernelSvc",
  332. "Loader",
  333. "Service",
  334. "ServiceAcc",
  335. "ServiceAm",
  336. "ServiceApm",
  337. "ServiceAudio",
  338. "ServiceBsd",
  339. "ServiceCaps",
  340. "ServiceFriend",
  341. "ServiceFs",
  342. "ServiceHid",
  343. "ServiceIrs",
  344. "ServiceLdr",
  345. "ServiceLm",
  346. "ServiceMm",
  347. "ServiceNfp",
  348. "ServiceNifm",
  349. "ServiceNs",
  350. "ServiceNv",
  351. "ServicePctl",
  352. "ServicePl",
  353. "ServicePrepo",
  354. "ServicePsm",
  355. "ServiceSet",
  356. "ServiceSfdnsres",
  357. "ServiceSm",
  358. "ServiceSsl",
  359. "ServiceSss",
  360. "ServiceTime",
  361. "ServiceVi"
  362. ]
  363. }
  364. },
  365. "enable_file_log": {
  366. "$id": "#/properties/enable_file_log",
  367. "type": "boolean",
  368. "title": "Enable File Log",
  369. "description": "Enables logging to a file on disk",
  370. "default": true,
  371. "examples": [
  372. true,
  373. false
  374. ]
  375. },
  376. "system_language": {
  377. "$id": "#/properties/system_language",
  378. "type": "string",
  379. "title": "System Language",
  380. "description": "Change System Language",
  381. "default": "AmericanEnglish",
  382. "enum": [
  383. "Japanese",
  384. "AmericanEnglish",
  385. "French",
  386. "German",
  387. "Italian",
  388. "Spanish",
  389. "Chinese",
  390. "Korean",
  391. "Dutch",
  392. "Portuguese",
  393. "Russian",
  394. "Taiwanese",
  395. "BritishEnglish",
  396. "CanadianFrench",
  397. "LatinAmericanSpanish",
  398. "SimplifiedChinese",
  399. "TraditionalChinese"
  400. ],
  401. "examples": [
  402. "AmericanEnglish"
  403. ]
  404. },
  405. "docked_mode": {
  406. "$id": "#/properties/docked_mode",
  407. "type": "boolean",
  408. "title": "Enable Docked Mode",
  409. "description": "Enables or disables Docked Mode",
  410. "default": false,
  411. "examples": [
  412. true,
  413. false
  414. ]
  415. },
  416. "enable_discord_integration": {
  417. "$id": "#/properties/enable_discord_integration",
  418. "type": "boolean",
  419. "title": "Enable Discord Rich Presence",
  420. "description": "Enable or disable Discord Rich Presence",
  421. "default": true,
  422. "examples": [
  423. true,
  424. false
  425. ]
  426. },
  427. "enable_vsync": {
  428. "$id": "#/properties/enable_vsync",
  429. "type": "boolean",
  430. "title": "Enable Vertical Sync",
  431. "description": "Enables or disables Vertical Sync",
  432. "default": true,
  433. "examples": [
  434. true,
  435. false
  436. ]
  437. },
  438. "enable_multicore_scheduling": {
  439. "$id": "#/properties/enable_multicore_scheduling",
  440. "type": "boolean",
  441. "title": "Enable Multicore Scheduling",
  442. "description": "Enables or disables multi-core scheduling of threads",
  443. "default": true,
  444. "examples": [
  445. true,
  446. false
  447. ]
  448. },
  449. "enable_fs_integrity_checks": {
  450. "$id": "#/properties/enable_fs_integrity_checks",
  451. "type": "boolean",
  452. "title": "Enable Filesystem Integrity Checks",
  453. "description": "Enables integrity checks on Game content files. Only applies to ROMs loaded as XCI files",
  454. "default": true,
  455. "examples": [
  456. true,
  457. false
  458. ]
  459. },
  460. "fs_global_access_log_mode": {
  461. "$id": "#/properties/fs_global_access_log_mode",
  462. "type": "integer",
  463. "title": "Enable FS access log",
  464. "description": "Enables FS access log output. Possible modes are 0-3. Modes 2 and 3 output to the console",
  465. "default": 0,
  466. "minimum": 0,
  467. "examples": [
  468. 0,
  469. 1,
  470. 2,
  471. 3
  472. ]
  473. },
  474. "ignore_missing_services": {
  475. "$id": "#/properties/ignore_missing_services",
  476. "type": "boolean",
  477. "title": "Ignore Missing Services",
  478. "description": "Enable or disable ignoring missing services, this may cause instability",
  479. "default": false,
  480. "examples": [
  481. true,
  482. false
  483. ]
  484. },
  485. "game_dirs": {
  486. "$id": "#/properties/game_dirs",
  487. "type": "string list",
  488. "title": "List of Game Directories",
  489. "description": "A list of directories containing games to be used to load games into the games list",
  490. "default": []
  491. },
  492. "gui_columns": {
  493. "$id": "#/properties/gui_columns",
  494. "type": "bool list",
  495. "title": "Used to toggle columns in the GUI",
  496. "description": "Used to toggle columns in the GUI",
  497. "default": [ true, true, true, true, true, true, true, true, true ]
  498. },
  499. "enable_custom_theme": {
  500. "$id": "#/properties/enable_custom_theme",
  501. "type": "boolean",
  502. "title": "Enable custom themes in the GUI",
  503. "description": "Enable or disable custom themes in the GUI",
  504. "default": false,
  505. "examples": [
  506. true,
  507. false
  508. ]
  509. },
  510. "custom_theme_path": {
  511. "$id": "#/properties/custom_theme_path",
  512. "type": "string",
  513. "title": "Path to custom GUI theme",
  514. "description": "Path to custom GUI theme",
  515. "default": ""
  516. },
  517. "controller_type": {
  518. "$id": "#/properties/controller_type",
  519. "type": "string",
  520. "title": "Controller Type",
  521. "default": "Handheld",
  522. "enum": [
  523. "Handheld",
  524. "ProController",
  525. "NpadPair",
  526. "NpadLeft",
  527. "NpadRight"
  528. ],
  529. "examples": [
  530. "Handheld",
  531. "ProController",
  532. "NpadPair",
  533. "NpadLeft",
  534. "NpadRight"
  535. ]
  536. },
  537. "enable_keyboard": {
  538. "$id": "#/properties/enable_keyboard",
  539. "type": "boolean",
  540. "title": "(HID) Keyboard Enable",
  541. "description": "Enable or disable direct keyboard access (HID) support (Provides games access to your keyboard as a text entry device).",
  542. "default": true,
  543. "examples": [
  544. true,
  545. false
  546. ]
  547. },
  548. "keyboard_controls": {
  549. "$id": "#/properties/keyboard_controls",
  550. "type": "object",
  551. "title": "Keyboard Controls",
  552. "required": [
  553. "left_joycon",
  554. "right_joycon"
  555. ],
  556. "properties": {
  557. "left_joycon": {
  558. "$id": "#/properties/keyboard_controls/properties/left_joycon",
  559. "type": "object",
  560. "title": "Left JoyCon Controls",
  561. "required": [
  562. "stick_up",
  563. "stick_down",
  564. "stick_left",
  565. "stick_right",
  566. "stick_button",
  567. "dpad_up",
  568. "dpad_down",
  569. "dpad_left",
  570. "dpad_right",
  571. "button_minus",
  572. "button_l",
  573. "button_zl"
  574. ],
  575. "properties": {
  576. "stick_up": {
  577. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_up",
  578. "$ref": "#/definitions/key",
  579. "title": "Stick Up",
  580. "default": "w"
  581. },
  582. "stick_down": {
  583. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_down",
  584. "$ref": "#/definitions/key",
  585. "title": "Stick Down",
  586. "default": "S"
  587. },
  588. "stick_left": {
  589. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_left",
  590. "$ref": "#/definitions/key",
  591. "title": "Stick Left",
  592. "default": "A"
  593. },
  594. "stick_right": {
  595. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_right",
  596. "$ref": "#/definitions/key",
  597. "title": "Stick Right",
  598. "default": "D"
  599. },
  600. "stick_button": {
  601. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_button",
  602. "$ref": "#/definitions/key",
  603. "title": "Stick Button",
  604. "default": "F"
  605. },
  606. "dpad_up": {
  607. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/dpad_up",
  608. "$ref": "#/definitions/key",
  609. "title": "Dpad Up",
  610. "default": "Up"
  611. },
  612. "dpad_down": {
  613. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/dpad_down",
  614. "$ref": "#/definitions/key",
  615. "title": "Dpad Down",
  616. "default": "Down"
  617. },
  618. "dpad_left": {
  619. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/dpad_left",
  620. "$ref": "#/definitions/key",
  621. "title": "Dpad Left",
  622. "default": "Left"
  623. },
  624. "dpad_right": {
  625. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/dpad_right",
  626. "$ref": "#/definitions/key",
  627. "title": "Dpad Right",
  628. "default": "Right"
  629. },
  630. "button_minus": {
  631. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/button_minus",
  632. "$ref": "#/definitions/key",
  633. "title": "Button Minus",
  634. "default": "Minus"
  635. },
  636. "button_l": {
  637. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/button_l",
  638. "$ref": "#/definitions/key",
  639. "title": "Button L",
  640. "default": "E"
  641. },
  642. "button_zl": {
  643. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/button_zl",
  644. "$ref": "#/definitions/key",
  645. "title": "Button ZL",
  646. "default": "Q"
  647. }
  648. }
  649. },
  650. "right_joycon": {
  651. "$id": "#/properties/keyboard_controls/properties/right_joycon",
  652. "type": "object",
  653. "title": "Right JoyCon Controls",
  654. "required": [
  655. "stick_up",
  656. "stick_down",
  657. "stick_left",
  658. "stick_right",
  659. "stick_button",
  660. "button_a",
  661. "button_b",
  662. "button_x",
  663. "button_y",
  664. "button_plus",
  665. "button_r",
  666. "button_zr"
  667. ],
  668. "properties": {
  669. "stick_up": {
  670. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_up",
  671. "$ref": "#/definitions/key",
  672. "title": "Stick Up",
  673. "default": "I"
  674. },
  675. "stick_down": {
  676. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_down",
  677. "$ref": "#/definitions/key",
  678. "title": "Stick Down",
  679. "default": "K"
  680. },
  681. "stick_left": {
  682. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_left",
  683. "$ref": "#/definitions/key",
  684. "title": "Stick Left",
  685. "default": "J"
  686. },
  687. "stick_right": {
  688. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_right",
  689. "$ref": "#/definitions/key",
  690. "title": "Stick Right",
  691. "default": "L"
  692. },
  693. "stick_button": {
  694. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_button",
  695. "$ref": "#/definitions/key",
  696. "title": "Stick Button",
  697. "default": "H"
  698. },
  699. "button_a": {
  700. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_a",
  701. "$ref": "#/definitions/key",
  702. "title": "Button A",
  703. "default": "Z"
  704. },
  705. "button_b": {
  706. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_b",
  707. "$ref": "#/definitions/key",
  708. "title": "Button B",
  709. "default": "X"
  710. },
  711. "button_x": {
  712. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_x",
  713. "$ref": "#/definitions/key",
  714. "title": "Button X",
  715. "default": "C"
  716. },
  717. "button_y": {
  718. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_y",
  719. "$ref": "#/definitions/key",
  720. "title": "Button Y",
  721. "default": "V"
  722. },
  723. "button_plus": {
  724. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_plus",
  725. "$ref": "#/definitions/key",
  726. "title": "Button Plus",
  727. "default": "Plus"
  728. },
  729. "button_r": {
  730. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_r",
  731. "$ref": "#/definitions/key",
  732. "title": "Button R",
  733. "default": "U"
  734. },
  735. "button_zr": {
  736. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_zr",
  737. "$ref": "#/definitions/key",
  738. "title": "Button Zr",
  739. "default": "O"
  740. }
  741. }
  742. },
  743. "hotkeys": {
  744. "$id": "#/properties/keyboard_controls/properties/hotkeys",
  745. "type": "object",
  746. "title": "Hotkey Controls",
  747. "required": [
  748. "toggle_vsync"
  749. ],
  750. "properties": {
  751. "toggle_vsync": {
  752. "$id": "#/properties/keyboard_controls/properties/hotkeys/properties/toggle_vsync",
  753. "$ref": "#/definitions/key",
  754. "title": "Toggle VSync",
  755. "default": "Tab"
  756. }
  757. }
  758. }
  759. }
  760. },
  761. "joystick_controls": {
  762. "$id": "#/properties/joystick_controls",
  763. "type": "object",
  764. "title": "Joystick Controls",
  765. "required": [
  766. "left_joycon",
  767. "right_joycon"
  768. ],
  769. "properties": {
  770. "enable": {
  771. "$id": "#/properties/joystick_controls/properties/enable",
  772. "type": "boolean",
  773. "title": "Joystick Enable",
  774. "description": "Enables or disables controller support",
  775. "default": true,
  776. "examples": [
  777. true,
  778. false
  779. ]
  780. },
  781. "index": {
  782. "$id": "#/properties/joystick_controls/properties/index",
  783. "type": "integer",
  784. "title": "Joystick Index",
  785. "description": "Controller Device Index",
  786. "default": 0,
  787. "minimum": 0,
  788. "examples": [
  789. 0,
  790. 1,
  791. 2
  792. ]
  793. },
  794. "deadzone": {
  795. "$id": "#/properties/joystick_controls/properties/deadzone",
  796. "type": "number",
  797. "title": "Joystick Deadzone",
  798. "description": "Controller Analog Stick Deadzone",
  799. "default": 0.05,
  800. "minimum": -32768.0,
  801. "maximum": 32767.0,
  802. "examples": [
  803. 0.05
  804. ]
  805. },
  806. "trigger_threshold": {
  807. "$id": "#/properties/joystick_controls/properties/trigger_threshold",
  808. "type": "number",
  809. "title": "Controller Trigger Threshold",
  810. "description": "The value of how pressed down each trigger has to be in order to register a button press",
  811. "default": 0.5,
  812. "minimum": 0.0,
  813. "maximum": 1.0,
  814. "examples": [
  815. 0.5
  816. ]
  817. },
  818. "left_joycon": {
  819. "$id": "#/properties/joystick_controls/properties/left_joycon",
  820. "type": "object",
  821. "title": "Left JoyCon Controls",
  822. "required": [
  823. "stick",
  824. "stick_button",
  825. "dpad_up",
  826. "dpad_down",
  827. "dpad_left",
  828. "dpad_right",
  829. "button_minus",
  830. "button_l",
  831. "button_zl"
  832. ],
  833. "properties": {
  834. "stick": {
  835. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/stick",
  836. "$ref": "#/definitions/input",
  837. "title": "Stick",
  838. "default": "Axis0"
  839. },
  840. "stick_button": {
  841. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/stick_button",
  842. "$ref": "#/definitions/input",
  843. "title": "Stick Button",
  844. "default": "Button13"
  845. },
  846. "dpad_up": {
  847. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/dpad_up",
  848. "$ref": "#/definitions/input",
  849. "title": "Dpad Up",
  850. "default": "Hat0Up"
  851. },
  852. "dpad_down": {
  853. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/dpad_down",
  854. "$ref": "#/definitions/input",
  855. "title": "Dpad Down",
  856. "default": "Hat0Down"
  857. },
  858. "dpad_left": {
  859. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/dpad_left",
  860. "$ref": "#/definitions/input",
  861. "title": "Dpad Left",
  862. "default": "Hat0Left"
  863. },
  864. "dpad_right": {
  865. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/dpad_right",
  866. "$ref": "#/definitions/input",
  867. "title": "Dpad Right",
  868. "default": "Hat0Right"
  869. },
  870. "button_minus": {
  871. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/button_minus",
  872. "$ref": "#/definitions/input",
  873. "title": "Button Minus",
  874. "default": "Button10"
  875. },
  876. "button_l": {
  877. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/button_l",
  878. "$ref": "#/definitions/input",
  879. "title": "Button L",
  880. "default": "Button6"
  881. },
  882. "button_zl": {
  883. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/button_zl",
  884. "$ref": "#/definitions/input",
  885. "title": "Button ZL",
  886. "default": "Button8"
  887. }
  888. }
  889. },
  890. "right_joycon": {
  891. "$id": "#/properties/joystick_controls/properties/right_joycon",
  892. "type": "object",
  893. "title": "Right JoyCon Controls",
  894. "required": [
  895. "stick",
  896. "stick_button",
  897. "button_a",
  898. "button_b",
  899. "button_x",
  900. "button_y",
  901. "button_plus",
  902. "button_r",
  903. "button_zr"
  904. ],
  905. "properties": {
  906. "stick": {
  907. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/stick",
  908. "$ref": "#/definitions/input",
  909. "title": "Stick",
  910. "default": "Axis2"
  911. },
  912. "stick_button": {
  913. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/stick_button",
  914. "$ref": "#/definitions/input",
  915. "title": "Stick Button",
  916. "default": "Button14"
  917. },
  918. "button_a": {
  919. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_a",
  920. "$ref": "#/definitions/input",
  921. "title": "Button A",
  922. "default": "Button0"
  923. },
  924. "button_b": {
  925. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_b",
  926. "$ref": "#/definitions/input",
  927. "title": "Button B",
  928. "default": "Button1"
  929. },
  930. "button_x": {
  931. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_x",
  932. "$ref": "#/definitions/input",
  933. "title": "Button X",
  934. "default": "Button3"
  935. },
  936. "button_y": {
  937. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_y",
  938. "$ref": "#/definitions/input",
  939. "title": "Button Y",
  940. "default": "Button4"
  941. },
  942. "button_plus": {
  943. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_plus",
  944. "$ref": "#/definitions/input",
  945. "title": "Button Plus",
  946. "default": "Button11"
  947. },
  948. "button_r": {
  949. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_r",
  950. "$ref": "#/definitions/input",
  951. "title": "Button R",
  952. "default": "Button7"
  953. },
  954. "button_zr": {
  955. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_zr",
  956. "$ref": "#/definitions/input",
  957. "title": "Button ZR",
  958. "default": "Button9"
  959. }
  960. }
  961. }
  962. }
  963. }
  964. }
  965. }