Mercurial > sdl-ios-xcode
comparison test/testwm.c @ 4942:c127755eebee
Allow META-Enter to toggle fullscreen mode
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 01 Jan 2011 19:38:56 -0800 |
parents | 1e31a24c41a6 |
children | 25d4feb7c127 |
comparison
equal
deleted
inserted
replaced
4941:bd009a923441 | 4942:c127755eebee |
---|---|
309 if ((event->key.keysym.sym == SDLK_z) && | 309 if ((event->key.keysym.sym == SDLK_z) && |
310 (event->key.keysym.mod & KMOD_CTRL)) { | 310 (event->key.keysym.mod & KMOD_CTRL)) { |
311 HotKey_Iconify(); | 311 HotKey_Iconify(); |
312 } | 312 } |
313 if ((event->key.keysym.sym == SDLK_RETURN) && | 313 if ((event->key.keysym.sym == SDLK_RETURN) && |
314 (event->key.keysym.mod & KMOD_ALT)) { | 314 (event->key.keysym.mod & (KMOD_ALT|KMOD_META))) { |
315 HotKey_ToggleFullScreen(); | 315 HotKey_ToggleFullScreen(); |
316 } | 316 } |
317 return (0); | 317 return (0); |
318 | 318 |
319 case SDL_KEYUP: | 319 case SDL_KEYUP: |