- 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:
Mark Vejvoda
2012-07-26 20:47:16 +00:00
parent 778bb788ef
commit 194e1868b9
3 changed files with 72 additions and 49 deletions

View File

@@ -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