00001 /* 00002 * Copyright (C) 2004 Ivo Danihelka (ivo@danihelka.net) 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 */ 00009 #include "HelpInput.h" 00010 00011 #include "Keymap.h" 00012 #include "KeyDesc.h" 00013 #include "GameState.h" 00014 00015 //----------------------------------------------------------------- 00016 /** 00017 * Escape, space or mouse click quit state. 00018 */ 00019 HelpInput::HelpInput(GameState *state) 00020 : StateInput(state) 00021 { 00022 } 00023 //----------------------------------------------------------------- 00024 /** 00025 * Quits on unhandled keypress. 00026 */ 00027 void 00028 HelpInput::specStroke(const KeyStroke &/*stroke*/) 00029 { 00030 quitState(); 00031 } 00032 //----------------------------------------------------------------- 00033 void 00034 HelpInput::mouseEvent(const MouseStroke &/*buttons*/) 00035 { 00036 quitState(); 00037 } 00038