_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <keyinput.h>
Public Types | |
| enum | { EMPTY = 0, PRESS, RELEASE } |
Public Member Functions | |
| KeyInput () | |
| KeyInput (const Key &key, int type) | |
| void | setType (int type) |
| int | getType () const |
| void | setKey (const Key &key) |
| const Key & | getKey () const |
Protected Attributes | |
| Key | mKey |
| int | mType |
| int | mButton |
Internal class representing keyboard input. Generally you won't have to bother using this class.
|
inline |
Constructor.
| gcn::KeyInput::KeyInput | ( | const Key & | key, |
| int | type | ||
| ) |
Constructor.
| key | the Key the input concerns. |
| type | the type of input. |
| const Key & gcn::KeyInput::getKey | ( | ) | const |
Gets the key the input concerns.
| int gcn::KeyInput::getType | ( | ) | const |
Gets the input type.
Sets the key the input concerns.
| key | the Key the input concerns. |
| void gcn::KeyInput::setType | ( | int | type | ) |
Sets the input type.
| type | the type of input. |
|
protected |
|
protected |
|
protected |
1.8.17
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.