mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-19 11:18: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
|
@ -219,22 +219,22 @@ static void loop(void)
|
|||
#endif
|
||||
if (e.type == SDL_EVENT_KEY_DOWN) {
|
||||
SDL_Keycode key = e.key.key;
|
||||
if (key == SDLK_q) {
|
||||
if (key == SDLK_Q) {
|
||||
if (SDL_AudioDevicePaused(state->audio_id)) {
|
||||
SDL_ResumeAudioDevice(state->audio_id);
|
||||
} else {
|
||||
SDL_PauseAudioDevice(state->audio_id);
|
||||
}
|
||||
} else if (key == SDLK_w) {
|
||||
} else if (key == SDLK_W) {
|
||||
auto_loop = !auto_loop;
|
||||
} else if (key == SDLK_e) {
|
||||
} else if (key == SDLK_E) {
|
||||
auto_flush = !auto_flush;
|
||||
} else if (key == SDLK_a) {
|
||||
} else if (key == SDLK_A) {
|
||||
SDL_ClearAudioStream(stream);
|
||||
SDL_Log("Cleared audio stream");
|
||||
} else if (key == SDLK_s) {
|
||||
} else if (key == SDLK_S) {
|
||||
queue_audio();
|
||||
} else if (key == SDLK_d) {
|
||||
} else if (key == SDLK_D) {
|
||||
float amount = 1.0f;
|
||||
amount *= (e.key.mod & SDL_KMOD_CTRL) ? 10.0f : 1.0f;
|
||||
amount *= (e.key.mod & SDL_KMOD_SHIFT) ? 10.0f : 1.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue