Debian Codegraph @

src/option/HelpInput.cpp

raw
1 /*
2 * Copyright (C) 2004 Ivo Danihelka ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */
9 #include "HelpInput.h"
10
11 #include "Keymap.h"
12 #include "KeyDesc.h"
13 #include "GameState.h"
14
15 //-----------------------------------------------------------------
16 /**
17 * Escape, space or mouse click quit state.
18 */
19 HelpInput::HelpInput(GameState *state)
20 : StateInput(state)
21 {
22 }
23 //-----------------------------------------------------------------
24 /**
25 * Quits on unhandled keypress.
26 */
27 void
28 HelpInput::specStroke(const KeyStroke &/*stroke*/)
29 {
30 quitState();
31 }
32 //-----------------------------------------------------------------
33 void
34 HelpInput::mouseEvent(const MouseStroke &/*buttons*/)
35 {
36 quitState();
37 }
38