mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Removed SDL_Keysym
This commit is contained in:
parent
679e4471ed
commit
0dd579d40d
35 changed files with 150 additions and 150 deletions
|
|
@ -391,10 +391,10 @@ int main(int argc, char *argv[])
|
|||
while (SDL_PollEvent(&event)) {
|
||||
SDLTest_CommonEvent(state, &event, &done);
|
||||
if (event.type == SDL_EVENT_KEY_DOWN) {
|
||||
if (event.key.keysym.sym == SDLK_o) {
|
||||
if (event.key.key == SDLK_o) {
|
||||
swap_interval--;
|
||||
update_swap_interval = SDL_TRUE;
|
||||
} else if (event.key.keysym.sym == SDLK_p) {
|
||||
} else if (event.key.key == SDLK_p) {
|
||||
swap_interval++;
|
||||
update_swap_interval = SDL_TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue