mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 05:13:59 +02:00
- if holding ctrl while click to change the player type we will change all non human slots to the same player control type
This commit is contained in:
@@ -135,6 +135,7 @@ public:
|
||||
static const bool getIsFullScreen() { return isFullScreen; }
|
||||
static void setIsFullScreen(bool value) { isFullScreen = value; }
|
||||
//static SDL_keysym getKeystate() { return keystate; }
|
||||
static bool isKeyStateModPressed(int mod);
|
||||
|
||||
Window();
|
||||
virtual ~Window();
|
||||
|
@@ -1022,4 +1022,13 @@ bool isAllowedInputTextKey(SDLKey key) {
|
||||
return result;
|
||||
}
|
||||
|
||||
bool Window::isKeyStateModPressed(int mod) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("isKeyStateModPressed mod = %d, keystate.mod = %d, keystate.mod & mod = %d\n",mod,keystate.mod,(keystate.mod & mod));
|
||||
|
||||
if(keystate.mod & mod) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}}//end namespace
|
||||
|
Reference in New Issue
Block a user