Skip to content

Commit

Permalink
Input test function for Remote RetroPad
Browse files Browse the repository at this point in the history
Add input test capability for Remote Retropad core:
- read an .ratst file (JSON format) with test steps
- display instruction (via libretro SET_MESSAGE)
- highlight input to be activated
- display summary when test is finished
  • Loading branch information
zoltanvb committed Mar 15, 2024
1 parent 34bcb9f commit d9b6d80
Show file tree
Hide file tree
Showing 2 changed files with 462 additions and 11 deletions.
130 changes: 130 additions & 0 deletions cores/libretro-net-retropad/controllertest.ratst
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
[
{
"expected_button": 8,
"message": "Press A"
},
{
"expected_button": 0,
"message": "Press B"
},
{
"expected_button": 9,
"message": "Press X"
},
{
"expected_button": 1,
"message": "Press Y"
},
{
"expected_button": 2,
"message": "Press Select"
},
{
"expected_button": 3,
"message": "Press Start"
},
{
"expected_button": 4,
"message": "Press D-Pad Up"
},
{
"expected_button": 5,
"message": "Press D-Pad Down"
},
{
"expected_button": 6,
"message": "Press D-Pad Left"
},
{
"expected_button": 7,
"message": "Press D-Pad Right"
},
{
"expected_button": 10,
"message": "Press L1"
},
{
"expected_button": 11,
"message": "Press R1"
},
{
"expected_button": 12,
"message": "Press L2"
},
{
"expected_button": 13,
"message": "Press R2"
},
{
"expected_button": 14,
"message": "Press L3"
},
{
"expected_button": 15,
"message": "Press R3"
},
{
"expected_button": 25,
"message": "Move left analog stick up slightly"
},
{
"expected_button": 24,
"message": "Move left analog stick up fully"
},
{
"expected_button": 26,
"message": "Move left analog stick down slightly"
},
{
"expected_button": 27,
"message": "Move left analog stick down fully"
},
{
"expected_button": 17,
"message": "Move left analog stick left slightly"
},
{
"expected_button": 16,
"message": "Move left analog stick left fully"
},
{
"expected_button": 18,
"message": "Move left analog stick right slightly"
},
{
"expected_button": 19,
"message": "Move left analog stick right fully"
},
{
"expected_button": 29,
"message": "Move right analog stick up slightly"
},
{
"expected_button": 28,
"message": "Move right analog stick up fully"
},
{
"expected_button": 30,
"message": "Move right analog stick down slightly"
},
{
"expected_button": 31,
"message": "Move right analog stick down fully"
},
{
"expected_button": 21,
"message": "Move right analog stick left slightly"
},
{
"expected_button": 20,
"message": "Move right analog stick left fully"
},
{
"expected_button": 22,
"message": "Move right analog stick right slightly"
},
{
"expected_button": 23,
"message": "Move right analog stick right fully"
}
]
Loading

0 comments on commit d9b6d80

Please sign in to comment.