mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 17:58:27 +00:00
Renamed SDLK_a-z to SDLK_A-Z
Made the symbols uppercase for consistency with the other SDLK_* constants, but the values are still lowercase.
This commit is contained in:
parent
d9dc4b320a
commit
e8dbbf8380
16 changed files with 275 additions and 93 deletions
|
@ -1853,30 +1853,30 @@ static void loop(void *arg)
|
|||
SDL_SetGamepadPlayerIndex(controller->gamepad, player_index);
|
||||
}
|
||||
break;
|
||||
} else if (event.key.key == SDLK_a) {
|
||||
} else if (event.key.key == SDLK_A) {
|
||||
OpenVirtualGamepad();
|
||||
} else if (event.key.key == SDLK_d) {
|
||||
} else if (event.key.key == SDLK_D) {
|
||||
CloseVirtualGamepad();
|
||||
} else if (event.key.key == SDLK_r && (event.key.mod & SDL_KMOD_CTRL)) {
|
||||
} else if (event.key.key == SDLK_R && (event.key.mod & SDL_KMOD_CTRL)) {
|
||||
SDL_ReloadGamepadMappings();
|
||||
} else if (event.key.key == SDLK_ESCAPE) {
|
||||
done = SDL_TRUE;
|
||||
}
|
||||
} else if (display_mode == CONTROLLER_MODE_BINDING) {
|
||||
if (event.key.key == SDLK_c && (event.key.mod & SDL_KMOD_CTRL)) {
|
||||
if (event.key.key == SDLK_C && (event.key.mod & SDL_KMOD_CTRL)) {
|
||||
if (binding_element == SDL_GAMEPAD_ELEMENT_NAME) {
|
||||
CopyControllerName();
|
||||
} else {
|
||||
CopyMapping();
|
||||
}
|
||||
} else if (event.key.key == SDLK_v && (event.key.mod & SDL_KMOD_CTRL)) {
|
||||
} else if (event.key.key == SDLK_V && (event.key.mod & SDL_KMOD_CTRL)) {
|
||||
if (binding_element == SDL_GAMEPAD_ELEMENT_NAME) {
|
||||
ClearControllerName();
|
||||
PasteControllerName();
|
||||
} else {
|
||||
PasteMapping();
|
||||
}
|
||||
} else if (event.key.key == SDLK_x && (event.key.mod & SDL_KMOD_CTRL)) {
|
||||
} else if (event.key.key == SDLK_X && (event.key.mod & SDL_KMOD_CTRL)) {
|
||||
if (binding_element == SDL_GAMEPAD_ELEMENT_NAME) {
|
||||
CopyControllerName();
|
||||
ClearControllerName();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue