Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON schema files for test input driver and netretropad #16381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zoltanvb
Copy link
Contributor

Description

JSON schema files for input test driver and the Remote Retropad check side.

I did not find any straightforward method to indicate numeric constants here in the schema, such as:

#define JOYPAD_TEST_COMMAND_ADD_CONTROLLER 1
for actions, or:
#define RETRO_DEVICE_ID_JOYPAD_B 0
for expected_button, without having to change the processing side, which I would not like to do, so writing test inputs will still be a bit inconvenient.

Schemas can be applied without error:

jsonschema test_input_driver_schema.json  -i test_input_joypad.ratst
jsonschema netretropad_input_check_schema.json -i netretropad_all_inputs.ratst

Related Pull Requests

#16370 (comment)

Reviewers

@JesseTG

@JesseTG
Copy link
Contributor

JesseTG commented Apr 24, 2024

Whoops, I didn't notice this until just now. Sorry about that.

At any rate, looks good to me. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants