mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-26 02:07:26 +00:00
Fix OSX build with SDL1.2 (nasty, nasty)
This commit is contained in:
parent
47b8c75dcb
commit
82ab3fa60c
1 changed files with 5 additions and 1 deletions
|
@ -3561,7 +3561,11 @@ void Core::pollEvents()
|
|||
case SDL_KEYDOWN:
|
||||
{
|
||||
#if __APPLE__
|
||||
if ((event.key.keysym.sym == SDLK_q) && (event.key.keysym.mod & KMOD_GUI))
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
if ((event.key.keysym.sym == SDLK_q) && (event.key.keysym.mod & KMOD_GUI))
|
||||
#else
|
||||
if ((event.key.keysym.sym == SDLK_q) && (event.key.keysym.mod & KMOD_META))
|
||||
#endif
|
||||
#else
|
||||
if ((event.key.keysym.sym == SDLK_F4) && (event.key.keysym.mod & KMOD_ALT))
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue