$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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 |
gcn::KeyInput::KeyInput | ( | ) | [inline] |
Constructor.
gcn::KeyInput::KeyInput | ( | const Key & | key, | |
int | type | |||
) |
void gcn::KeyInput::setType | ( | int | type | ) |
Sets the input type.
type | the type of input. |
int gcn::KeyInput::getType | ( | ) | const |
Gets the input type.
void gcn::KeyInput::setKey | ( | const Key & | key | ) |
const Key & gcn::KeyInput::getKey | ( | ) | const |
Key gcn::KeyInput::mKey [protected] |
int gcn::KeyInput::mType [protected] |
int gcn::KeyInput::mButton [protected] |