_schema.json 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976
  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": "array",
  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": "array",
  495. "title": "Used to toggle columns in the GUI",
  496. "description": "Used to toggle columns in the GUI",
  497. "default": {
  498. "fav_column": true,
  499. "icon_column": true,
  500. "app_column": true,
  501. "dev_column": true,
  502. "version_column": true,
  503. "time_played_column": true,
  504. "last_played_column": true,
  505. "file_ext_column": true,
  506. "file_size_column": true,
  507. "path_column": true
  508. }
  509. },
  510. "enable_custom_theme": {
  511. "$id": "#/properties/enable_custom_theme",
  512. "type": "boolean",
  513. "title": "Enable custom themes in the GUI",
  514. "description": "Enable or disable custom themes in the GUI",
  515. "default": false,
  516. "examples": [
  517. true,
  518. false
  519. ]
  520. },
  521. "custom_theme_path": {
  522. "$id": "#/properties/custom_theme_path",
  523. "type": "string",
  524. "title": "Path to custom GUI theme",
  525. "description": "Path to custom GUI theme",
  526. "default": ""
  527. },
  528. "controller_type": {
  529. "$id": "#/properties/controller_type",
  530. "type": "string",
  531. "title": "Controller Type",
  532. "default": "Handheld",
  533. "enum": [
  534. "Handheld",
  535. "ProController",
  536. "NpadPair",
  537. "NpadLeft",
  538. "NpadRight"
  539. ],
  540. "examples": [
  541. "Handheld",
  542. "ProController",
  543. "NpadPair",
  544. "NpadLeft",
  545. "NpadRight"
  546. ]
  547. },
  548. "enable_keyboard": {
  549. "$id": "#/properties/enable_keyboard",
  550. "type": "boolean",
  551. "title": "(HID) Keyboard Enable",
  552. "description": "Enable or disable direct keyboard access (HID) support (Provides games access to your keyboard as a text entry device).",
  553. "default": true,
  554. "examples": [
  555. true,
  556. false
  557. ]
  558. },
  559. "keyboard_controls": {
  560. "$id": "#/properties/keyboard_controls",
  561. "type": "object",
  562. "title": "Keyboard Controls",
  563. "required": [
  564. "left_joycon",
  565. "right_joycon"
  566. ],
  567. "properties": {
  568. "left_joycon": {
  569. "$id": "#/properties/keyboard_controls/properties/left_joycon",
  570. "type": "object",
  571. "title": "Left JoyCon Controls",
  572. "required": [
  573. "stick_up",
  574. "stick_down",
  575. "stick_left",
  576. "stick_right",
  577. "stick_button",
  578. "dpad_up",
  579. "dpad_down",
  580. "dpad_left",
  581. "dpad_right",
  582. "button_minus",
  583. "button_l",
  584. "button_zl"
  585. ],
  586. "properties": {
  587. "stick_up": {
  588. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_up",
  589. "$ref": "#/definitions/key",
  590. "title": "Stick Up",
  591. "default": "w"
  592. },
  593. "stick_down": {
  594. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_down",
  595. "$ref": "#/definitions/key",
  596. "title": "Stick Down",
  597. "default": "S"
  598. },
  599. "stick_left": {
  600. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_left",
  601. "$ref": "#/definitions/key",
  602. "title": "Stick Left",
  603. "default": "A"
  604. },
  605. "stick_right": {
  606. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_right",
  607. "$ref": "#/definitions/key",
  608. "title": "Stick Right",
  609. "default": "D"
  610. },
  611. "stick_button": {
  612. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/stick_button",
  613. "$ref": "#/definitions/key",
  614. "title": "Stick Button",
  615. "default": "F"
  616. },
  617. "dpad_up": {
  618. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/dpad_up",
  619. "$ref": "#/definitions/key",
  620. "title": "Dpad Up",
  621. "default": "Up"
  622. },
  623. "dpad_down": {
  624. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/dpad_down",
  625. "$ref": "#/definitions/key",
  626. "title": "Dpad Down",
  627. "default": "Down"
  628. },
  629. "dpad_left": {
  630. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/dpad_left",
  631. "$ref": "#/definitions/key",
  632. "title": "Dpad Left",
  633. "default": "Left"
  634. },
  635. "dpad_right": {
  636. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/dpad_right",
  637. "$ref": "#/definitions/key",
  638. "title": "Dpad Right",
  639. "default": "Right"
  640. },
  641. "button_minus": {
  642. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/button_minus",
  643. "$ref": "#/definitions/key",
  644. "title": "Button Minus",
  645. "default": "Minus"
  646. },
  647. "button_l": {
  648. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/button_l",
  649. "$ref": "#/definitions/key",
  650. "title": "Button L",
  651. "default": "E"
  652. },
  653. "button_zl": {
  654. "$id": "#/properties/keyboard_controls/properties/left_joycon/properties/button_zl",
  655. "$ref": "#/definitions/key",
  656. "title": "Button ZL",
  657. "default": "Q"
  658. }
  659. }
  660. },
  661. "right_joycon": {
  662. "$id": "#/properties/keyboard_controls/properties/right_joycon",
  663. "type": "object",
  664. "title": "Right JoyCon Controls",
  665. "required": [
  666. "stick_up",
  667. "stick_down",
  668. "stick_left",
  669. "stick_right",
  670. "stick_button",
  671. "button_a",
  672. "button_b",
  673. "button_x",
  674. "button_y",
  675. "button_plus",
  676. "button_r",
  677. "button_zr"
  678. ],
  679. "properties": {
  680. "stick_up": {
  681. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_up",
  682. "$ref": "#/definitions/key",
  683. "title": "Stick Up",
  684. "default": "I"
  685. },
  686. "stick_down": {
  687. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_down",
  688. "$ref": "#/definitions/key",
  689. "title": "Stick Down",
  690. "default": "K"
  691. },
  692. "stick_left": {
  693. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_left",
  694. "$ref": "#/definitions/key",
  695. "title": "Stick Left",
  696. "default": "J"
  697. },
  698. "stick_right": {
  699. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_right",
  700. "$ref": "#/definitions/key",
  701. "title": "Stick Right",
  702. "default": "L"
  703. },
  704. "stick_button": {
  705. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/stick_button",
  706. "$ref": "#/definitions/key",
  707. "title": "Stick Button",
  708. "default": "H"
  709. },
  710. "button_a": {
  711. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_a",
  712. "$ref": "#/definitions/key",
  713. "title": "Button A",
  714. "default": "Z"
  715. },
  716. "button_b": {
  717. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_b",
  718. "$ref": "#/definitions/key",
  719. "title": "Button B",
  720. "default": "X"
  721. },
  722. "button_x": {
  723. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_x",
  724. "$ref": "#/definitions/key",
  725. "title": "Button X",
  726. "default": "C"
  727. },
  728. "button_y": {
  729. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_y",
  730. "$ref": "#/definitions/key",
  731. "title": "Button Y",
  732. "default": "V"
  733. },
  734. "button_plus": {
  735. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_plus",
  736. "$ref": "#/definitions/key",
  737. "title": "Button Plus",
  738. "default": "Plus"
  739. },
  740. "button_r": {
  741. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_r",
  742. "$ref": "#/definitions/key",
  743. "title": "Button R",
  744. "default": "U"
  745. },
  746. "button_zr": {
  747. "$id": "#/properties/keyboard_controls/properties/right_joycon/properties/button_zr",
  748. "$ref": "#/definitions/key",
  749. "title": "Button Zr",
  750. "default": "O"
  751. }
  752. }
  753. },
  754. "hotkeys": {
  755. "$id": "#/properties/keyboard_controls/properties/hotkeys",
  756. "type": "object",
  757. "title": "Hotkey Controls",
  758. "required": [
  759. "toggle_vsync"
  760. ],
  761. "properties": {
  762. "toggle_vsync": {
  763. "$id": "#/properties/keyboard_controls/properties/hotkeys/properties/toggle_vsync",
  764. "$ref": "#/definitions/key",
  765. "title": "Toggle VSync",
  766. "default": "Tab"
  767. }
  768. }
  769. }
  770. }
  771. },
  772. "joystick_controls": {
  773. "$id": "#/properties/joystick_controls",
  774. "type": "object",
  775. "title": "Joystick Controls",
  776. "required": [
  777. "left_joycon",
  778. "right_joycon"
  779. ],
  780. "properties": {
  781. "enable": {
  782. "$id": "#/properties/joystick_controls/properties/enable",
  783. "type": "boolean",
  784. "title": "Joystick Enable",
  785. "description": "Enables or disables controller support",
  786. "default": true,
  787. "examples": [
  788. true,
  789. false
  790. ]
  791. },
  792. "index": {
  793. "$id": "#/properties/joystick_controls/properties/index",
  794. "type": "integer",
  795. "title": "Joystick Index",
  796. "description": "Controller Device Index",
  797. "default": 0,
  798. "minimum": 0,
  799. "examples": [
  800. 0,
  801. 1,
  802. 2
  803. ]
  804. },
  805. "deadzone": {
  806. "$id": "#/properties/joystick_controls/properties/deadzone",
  807. "type": "number",
  808. "title": "Joystick Deadzone",
  809. "description": "Controller Analog Stick Deadzone",
  810. "default": 0.05,
  811. "minimum": -32768.0,
  812. "maximum": 32767.0,
  813. "examples": [
  814. 0.05
  815. ]
  816. },
  817. "trigger_threshold": {
  818. "$id": "#/properties/joystick_controls/properties/trigger_threshold",
  819. "type": "number",
  820. "title": "Controller Trigger Threshold",
  821. "description": "The value of how pressed down each trigger has to be in order to register a button press",
  822. "default": 0.5,
  823. "minimum": 0.0,
  824. "maximum": 1.0,
  825. "examples": [
  826. 0.5
  827. ]
  828. },
  829. "left_joycon": {
  830. "$id": "#/properties/joystick_controls/properties/left_joycon",
  831. "type": "object",
  832. "title": "Left JoyCon Controls",
  833. "required": [
  834. "stick",
  835. "stick_button",
  836. "dpad_up",
  837. "dpad_down",
  838. "dpad_left",
  839. "dpad_right",
  840. "button_minus",
  841. "button_l",
  842. "button_zl"
  843. ],
  844. "properties": {
  845. "stick": {
  846. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/stick",
  847. "$ref": "#/definitions/input",
  848. "title": "Stick",
  849. "default": "Axis0"
  850. },
  851. "stick_button": {
  852. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/stick_button",
  853. "$ref": "#/definitions/input",
  854. "title": "Stick Button",
  855. "default": "Button13"
  856. },
  857. "dpad_up": {
  858. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/dpad_up",
  859. "$ref": "#/definitions/input",
  860. "title": "Dpad Up",
  861. "default": "Hat0Up"
  862. },
  863. "dpad_down": {
  864. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/dpad_down",
  865. "$ref": "#/definitions/input",
  866. "title": "Dpad Down",
  867. "default": "Hat0Down"
  868. },
  869. "dpad_left": {
  870. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/dpad_left",
  871. "$ref": "#/definitions/input",
  872. "title": "Dpad Left",
  873. "default": "Hat0Left"
  874. },
  875. "dpad_right": {
  876. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/dpad_right",
  877. "$ref": "#/definitions/input",
  878. "title": "Dpad Right",
  879. "default": "Hat0Right"
  880. },
  881. "button_minus": {
  882. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/button_minus",
  883. "$ref": "#/definitions/input",
  884. "title": "Button Minus",
  885. "default": "Button10"
  886. },
  887. "button_l": {
  888. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/button_l",
  889. "$ref": "#/definitions/input",
  890. "title": "Button L",
  891. "default": "Button6"
  892. },
  893. "button_zl": {
  894. "$id": "#/properties/joystick_controls/properties/left_joycon/properties/button_zl",
  895. "$ref": "#/definitions/input",
  896. "title": "Button ZL",
  897. "default": "Button8"
  898. }
  899. }
  900. },
  901. "right_joycon": {
  902. "$id": "#/properties/joystick_controls/properties/right_joycon",
  903. "type": "object",
  904. "title": "Right JoyCon Controls",
  905. "required": [
  906. "stick",
  907. "stick_button",
  908. "button_a",
  909. "button_b",
  910. "button_x",
  911. "button_y",
  912. "button_plus",
  913. "button_r",
  914. "button_zr"
  915. ],
  916. "properties": {
  917. "stick": {
  918. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/stick",
  919. "$ref": "#/definitions/input",
  920. "title": "Stick",
  921. "default": "Axis2"
  922. },
  923. "stick_button": {
  924. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/stick_button",
  925. "$ref": "#/definitions/input",
  926. "title": "Stick Button",
  927. "default": "Button14"
  928. },
  929. "button_a": {
  930. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_a",
  931. "$ref": "#/definitions/input",
  932. "title": "Button A",
  933. "default": "Button0"
  934. },
  935. "button_b": {
  936. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_b",
  937. "$ref": "#/definitions/input",
  938. "title": "Button B",
  939. "default": "Button1"
  940. },
  941. "button_x": {
  942. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_x",
  943. "$ref": "#/definitions/input",
  944. "title": "Button X",
  945. "default": "Button3"
  946. },
  947. "button_y": {
  948. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_y",
  949. "$ref": "#/definitions/input",
  950. "title": "Button Y",
  951. "default": "Button4"
  952. },
  953. "button_plus": {
  954. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_plus",
  955. "$ref": "#/definitions/input",
  956. "title": "Button Plus",
  957. "default": "Button11"
  958. },
  959. "button_r": {
  960. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_r",
  961. "$ref": "#/definitions/input",
  962. "title": "Button R",
  963. "default": "Button7"
  964. },
  965. "button_zr": {
  966. "$id": "#/properties/joystick_controls/properties/right_joycon/properties/button_zr",
  967. "$ref": "#/definitions/input",
  968. "title": "Button ZR",
  969. "default": "Button9"
  970. }
  971. }
  972. }
  973. }
  974. }
  975. }
  976. }