void ReactToSpecialKeys(void) { //-------------------- // user asked for quit // if ( KeyIsPressedR('q') ) QuitGameMenu(); if ( KeyIsPressedR('c') && AltPressed() && CtrlPressed() && ShiftPressed() ) Cheatmenu (); if ( EscapePressedR() ) EscapeMenu (); if ( KeyIsPressedR ('p') ) Pause (); if (KeyIsPressedR (SDLK_F12) ) TakeScreenshot(); } // void ReactToSpecialKeys(void)
// FIXME: remove that obsolete stuff... void ReactToSpecialKeys(void) { if ( cmd_is_active(CMD_QUIT) ) QuitGameMenu(); if ( cmd_is_activeR(CMD_PAUSE) ) Pause (); if ( cmd_is_active (CMD_SCREENSHOT) ) TakeScreenshot(); // this stuff remains hardcoded to keys if ( KeyIsPressedR('c') && AltPressed() && CtrlPressed() && ShiftPressed() ) Cheatmenu (); if ( EscapePressedR() ) EscapeMenu (); } // void ReactToSpecialKeys(void)