Removed SDL_Keysym
This commit is contained in:
@@ -171,7 +171,7 @@ static void loop(void)
|
||||
}
|
||||
}
|
||||
} else if (event.type == SDL_EVENT_KEY_DOWN) {
|
||||
if (event.key.keysym.sym == SDLK_SPACE) {
|
||||
if (event.key.key == SDLK_SPACE) {
|
||||
for (i = 0; i < num_menus; ++i) {
|
||||
if (SDL_GetWindowFlags(menus[i].win) & SDL_WINDOW_HIDDEN) {
|
||||
SDL_ShowWindow(menus[i].win);
|
||||
|
||||
Reference in New Issue
Block a user