forked from libretro/RetroArch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JSON schema files for test input driver and netretropad
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://docs.libretro.com/development/input-api/netretropad_input_check_schema.json", | ||
"title": "RetroArch_netretropad_validator", | ||
"description": "Definition for driving RetroArch's Remote RetroPad test part.", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"expected_button": { | ||
"description": "Button to wait for", | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 4294967295 | ||
}, | ||
"message": { | ||
"description": "Message to be displayed to the user", | ||
"type": "string", | ||
"maxLength": 512 | ||
} | ||
}, | ||
"required": [ "expected_button" ] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://docs.libretro.com/development/input-api/test_input_driver_schema.json", | ||
"title": "RetroArch_input_driver", | ||
"description": "Definition for driving RetroArch's test input driver.", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"action": { | ||
"description": "Action to do", | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 4294967295 | ||
}, | ||
"param_str": { | ||
"description": "String parameter for the action", | ||
"type": "string", | ||
"maxLength": 255 | ||
}, | ||
"param_num": { | ||
"description": "Numeric parameter for the action", | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 4294967295 | ||
}, | ||
"frame": { | ||
"description": "Timing for the action using RetroArch's internal frame counter, default 60 fps", | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 4294967295 | ||
} | ||
}, | ||
"required": [ "action" ] | ||
} | ||
} | ||
|