$treeview $search $mathjax
Stratagus
2.2.6
$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 <key.h>
anonymous enum |
An enum with key values.
gcn::Key::Key | ( | ) |
Constructor.
gcn::Key::Key | ( | int | value | ) |
Constructor.
value | the ascii or enum value for the key. |
bool gcn::Key::isCharacter | ( | ) | const |
Checks whether a key is a character.
bool gcn::Key::isNumber | ( | ) | const |
Checks whether a key is a number.
bool gcn::Key::isLetter | ( | ) | const |
Checks whether a key is a letter.
bool gcn::Key::isShiftPressed | ( | ) | const |
Checks whether shift is pressed.
void gcn::Key::setShiftPressed | ( | bool | pressed | ) |
Sets the shift pressed flag.
pressed | the shift flag value. |
bool gcn::Key::isControlPressed | ( | ) | const |
Checks whether control is pressed.
void gcn::Key::setControlPressed | ( | bool | pressed | ) |
Sets the control pressed flag.
pressed | the control flag value. |
bool gcn::Key::isAltPressed | ( | ) | const |
Checks whether alt is pressed.
void gcn::Key::setAltPressed | ( | bool | pressed | ) |
Sets the alt pressed flag.
pressed | the alt flag value. |
bool gcn::Key::isMetaPressed | ( | ) | const |
Checks whether meta is pressed.
void gcn::Key::setMetaPressed | ( | bool | pressed | ) |
Sets the meta pressed flag.
pressed | the meta flag value. |
bool gcn::Key::isNumericPad | ( | ) | const |
Checks whether the key was pressed at the numeric pad.
void gcn::Key::setNumericPad | ( | bool | numpad | ) |
Sets the numeric pad flag.
numpad | the numeric pad flag value. |
int gcn::Key::getValue | ( | ) | const |
Gets the value of the key. If an ascii value exists it will be returned. Otherwise an enum value will be returned.
void gcn::Key::setValue | ( | int | value | ) |
Sets the value of the key. An ascii value or an enum value.
value | the key value. |
std::string gcn::Key::toString | ( | ) | const |
Convert to a UTF8 string
int gcn::Key::mValue [protected] |
bool gcn::Key::mShiftPressed [protected] |
bool gcn::Key::mControlPressed [protected] |
bool gcn::Key::mAltPressed [protected] |
bool gcn::Key::mMetaPressed [protected] |
bool gcn::Key::mNumericPad [protected] |