Map TEST_BUTTON for evdev input
This commit is contained in:
parent
603eb118ef
commit
8b79964f66
@ -117,6 +117,8 @@
|
|||||||
# EVDEV MODE (Input Mode 2)
|
# EVDEV MODE (Input Mode 2)
|
||||||
# To find the value pairs for these run ./lindbergh --list-controllers
|
# To find the value pairs for these run ./lindbergh --list-controllers
|
||||||
|
|
||||||
|
# TEST_BUTTON AT_TRANSLATED_SET_2_KEYBOARD_KEY_Z
|
||||||
|
|
||||||
# PLAYER_1_BUTTON_START AT_TRANSLATED_SET_2_KEYBOARD_KEY_1
|
# PLAYER_1_BUTTON_START AT_TRANSLATED_SET_2_KEYBOARD_KEY_1
|
||||||
# PLAYER_1_BUTTON_SERVICE AT_TRANSLATED_SET_2_KEYBOARD_KEY_S
|
# PLAYER_1_BUTTON_SERVICE AT_TRANSLATED_SET_2_KEYBOARD_KEY_S
|
||||||
# PLAYER_1_BUTTON_UP AT_TRANSLATED_SET_2_KEYBOARD_KEY_UP
|
# PLAYER_1_BUTTON_UP AT_TRANSLATED_SET_2_KEYBOARD_KEY_UP
|
||||||
|
@ -857,6 +857,10 @@ int readConfig(FILE *configFile, EmulatorConfig *config)
|
|||||||
else if (strcmp(command, "PLAYER_1_BUTTON_8_KEY") == 0)
|
else if (strcmp(command, "PLAYER_1_BUTTON_8_KEY") == 0)
|
||||||
config->keymap.player1.button8 = atoi(getNextToken(NULL, " ", &saveptr));
|
config->keymap.player1.button8 = atoi(getNextToken(NULL, " ", &saveptr));
|
||||||
|
|
||||||
|
// Evdev TEST button
|
||||||
|
else if (strcmp(command, "TEST_BUTTON") == 0)
|
||||||
|
strncpy(config->arcadeInputs.test, getNextToken(NULL, " ", &saveptr), INPUT_STRING_LENGTH - 1);
|
||||||
|
|
||||||
// Player 1 controls
|
// Player 1 controls
|
||||||
else if (strcmp(command, "PLAYER_1_BUTTON_START") == 0)
|
else if (strcmp(command, "PLAYER_1_BUTTON_START") == 0)
|
||||||
strncpy(config->arcadeInputs.player1_button_start, getNextToken(NULL, " ", &saveptr),
|
strncpy(config->arcadeInputs.player1_button_start, getNextToken(NULL, " ", &saveptr),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user