glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[glob2-devel] quiting (esc vs. cmd+q and alt+f4)


From: Kyle Lutze
Subject: [glob2-devel] quiting (esc vs. cmd+q and alt+f4)
Date: Fri, 08 Feb 2008 19:09:12 -0800
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

currently esc will quit out of the game at any point. I'm of the preference that instead it should bring up the game menu (as most games have it) and alt+f4 and cmd+q (under OS X) should quit.

Discuss!


Also, anyone know where in the code esc causes the game to quit?

in my local copy of glob2 I put

Uint8 *keystate = SDL_GetKeyState(NULL);
SDLMod modState = SDL_GetModState();
if ((modState & KMOD_META) && keystate[SDLK_q])
{
    exitGlobCompletely=true;
orderQueue.push_back(shared_ptr<Order>(new PlayerQuitsGameOrder(localPlayer)));
}

at around line 1025 in GameGUI.cpp, but it only works while playing a game which obviously isn't the desired effect and Bradley doesn't know where to put it either.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]