_schema.json 29 KB

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