-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better support for multiple reserved devices of the same kind.
- Loading branch information
1 parent
a9968e9
commit a8d77f6
Showing
4 changed files
with
80 additions
and
5 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
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
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,33 @@ | ||
[ | ||
{ | ||
"action": 1, | ||
"param_num": 0, | ||
"param_str": "(0001:0002) Test joypad device A", | ||
"frame": 0 | ||
}, | ||
{ | ||
"action": 1, | ||
"param_num": 1, | ||
"param_str": "(0003:0004) Test joypad device B" | ||
}, | ||
{ | ||
"action": 1, | ||
"param_num": 2, | ||
"param_str": "(0005:0006) Test joypad device C" | ||
}, | ||
{ | ||
"action": 1, | ||
"param_num": 3, | ||
"param_str": "(0005:0006) Test joypad device C" | ||
}, | ||
{ | ||
"action": 1, | ||
"param_num": 4, | ||
"param_str": "(0005:0006) Test joypad device C" | ||
}, | ||
{ | ||
"action": 1, | ||
"param_num": 5, | ||
"param_str": "(0005:0006) Test joypad device C" | ||
} | ||
] |
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,29 @@ | ||
# Test configuration file to be used with --appendconfig. | ||
# Sets up joypad driver, test input file for the joypad driver, | ||
# logging and autoconfig dir, and prevents saving. | ||
# Usage: | ||
# retroarch --appendconfig tests_other/testinput_device_reservation_test.cfg\|tests_other/all_binds_empty.cfg | ||
|
||
# Test scenario: | ||
# - Player 1 through 4 has preferred device C | ||
# - Player 5 and 6 has no reserved device | ||
# - Connect controller A, then B, then 4 instances of C | ||
# - VALIDATE: check that Player 1 - C (1), Player 2 - C(2), Player 3 - C(3), Player 4 - C(4), | ||
# Player 5 - A, Player 6 - B | ||
|
||
input_joypad_driver = "test" | ||
test_input_file_joypad = "tests-other/test_input_joypad_device_reservation2.ratst" | ||
joypad_autoconfig_dir = "tests-other/autoconf" | ||
frontend_log_level = "0" | ||
libretro_log_level = "0" | ||
log_verbosity = "true" | ||
config_save_on_exit = "false" | ||
input_player1_reserved_device = "Test joypad device C" | ||
input_player1_device_reservation_type = "2" | ||
input_player2_reserved_device = "Test joypad device C" | ||
input_player2_device_reservation_type = "2" | ||
input_player3_reserved_device = "0005:0006 Test joypad device C" | ||
input_player3_device_reservation_type = "2" | ||
input_player4_reserved_device = "0005:0006 " | ||
input_player4_device_reservation_type = "2" | ||
# input_max_users = "3" |