#include <Keyboard.h>
Public Member Functions | |
| Keyboard (void) | |
| ~Keyboard (void) | |
| float | GetKeyState (const unsigned index) const |
| float | GetOldKeyState (const unsigned index) const |
| float | GetKeyActionTime (const unsigned index) const |
| unsigned | GetKeyCount () const |
| bool | IsKeyDown (const unsigned index) const |
| bool | IsKeyPressed (const unsigned index) const |
| bool | IsKeyReleased (const unsigned index) const |
| bool | IsKeyInAction (const unsigned index) |
| void | UpdateState (const float time) |
Static Public Member Functions | |
| static cl7::char_type | GetChar (const unsigned key, const bool shift=false, const bool alt_gr=false) |
Static Public Attributes | |
| static const unsigned | DIM_COUNT = 108 |
| static const unsigned | ESCAPE = 0 |
| static const unsigned | F1 = 1 |
| static const unsigned | F2 = 2 |
| static const unsigned | F3 = 3 |
| static const unsigned | F4 = 4 |
| static const unsigned | F5 = 5 |
| static const unsigned | F6 = 6 |
| static const unsigned | F7 = 7 |
| static const unsigned | F8 = 8 |
| static const unsigned | F9 = 9 |
| static const unsigned | F10 = 10 |
| static const unsigned | F11 = 11 |
| static const unsigned | F12 = 12 |
| static const unsigned | F13 = 13 |
| static const unsigned | F14 = 14 |
| static const unsigned | F15 = 15 |
| static const unsigned | SYSRQ = 16 |
| static const unsigned | SCROLL = 17 |
| static const unsigned | PAUSE = 18 |
| static const unsigned | _1 = 19 |
| static const unsigned | _2 = 20 |
| static const unsigned | _3 = 21 |
| static const unsigned | _4 = 22 |
| static const unsigned | _5 = 23 |
| static const unsigned | _6 = 24 |
| static const unsigned | _7 = 25 |
| static const unsigned | _8 = 26 |
| static const unsigned | _9 = 27 |
| static const unsigned | _0 = 28 |
| static const unsigned | MINUS = 29 |
| static const unsigned | EQUALS = 30 |
| static const unsigned | BACK = 31 |
| static const unsigned | INSERT = 32 |
| static const unsigned | HOME = 33 |
| static const unsigned | PRIOR = 34 |
| static const unsigned | NUMLOCK = 35 |
| static const unsigned | DIVIDE = 36 |
| static const unsigned | MULTIPLY = 37 |
| static const unsigned | SUBTRACT = 38 |
| static const unsigned | TAB = 39 |
| static const unsigned | A = 40 |
| static const unsigned | B = 41 |
| static const unsigned | C = 42 |
| static const unsigned | D = 43 |
| static const unsigned | E = 44 |
| static const unsigned | F = 45 |
| static const unsigned | G = 46 |
| static const unsigned | H = 47 |
| static const unsigned | I = 48 |
| static const unsigned | J = 49 |
| static const unsigned | K = 50 |
| static const unsigned | L = 51 |
| static const unsigned | M = 52 |
| static const unsigned | N = 53 |
| static const unsigned | O = 54 |
| static const unsigned | P = 55 |
| static const unsigned | Q = 56 |
| static const unsigned | R = 57 |
| static const unsigned | S = 58 |
| static const unsigned | T = 59 |
| static const unsigned | U = 60 |
| static const unsigned | V = 61 |
| static const unsigned | W = 62 |
| static const unsigned | X = 63 |
| static const unsigned | Y = 64 |
| static const unsigned | Z = 65 |
| static const unsigned | LBRACKET = 66 |
| static const unsigned | RBRACKET = 67 |
| static const unsigned | RETURN = 68 |
| static const unsigned | DELETE = 69 |
| static const unsigned | END = 70 |
| static const unsigned | NEXT = 71 |
| static const unsigned | NUMPAD0 = 72 |
| static const unsigned | NUMPAD1 = 73 |
| static const unsigned | NUMPAD2 = 74 |
| static const unsigned | NUMPAD3 = 75 |
| static const unsigned | NUMPAD4 = 76 |
| static const unsigned | NUMPAD5 = 77 |
| static const unsigned | NUMPAD6 = 78 |
| static const unsigned | NUMPAD7 = 79 |
| static const unsigned | NUMPAD8 = 80 |
| static const unsigned | NUMPAD9 = 81 |
| static const unsigned | ADD = 82 |
| static const unsigned | CAPITAL = 83 |
| static const unsigned | SEMICOLON = 84 |
| static const unsigned | APOSTROPHE = 85 |
| static const unsigned | BACKSLASH = 86 |
| static const unsigned | LSHIFT = 87 |
| static const unsigned | OEM_102 = 88 |
| static const unsigned | COMMA = 89 |
| static const unsigned | PERIOD = 90 |
| static const unsigned | SLASH = 91 |
| static const unsigned | RSHIFT = 92 |
| static const unsigned | UP = 93 |
| static const unsigned | NUMPADENTER = 94 |
| static const unsigned | LCONTROL = 95 |
| static const unsigned | LWIN = 96 |
| static const unsigned | LALT = 97 |
| static const unsigned | SPACE = 98 |
| static const unsigned | RALT = 99 |
| static const unsigned | RWIN = 100 |
| static const unsigned | APPS = 101 |
| static const unsigned | RCONTROL = 102 |
| static const unsigned | LEFT = 103 |
| static const unsigned | DOWN = 104 |
| static const unsigned | RIGHT = 105 |
| static const unsigned | DECIMAL = 106 |
| static const unsigned | GRAVE = 107 |
| fl7::input::Keyboard::Keyboard | ( | void | ) |
Default constructor.
| fl7::input::Keyboard::~Keyboard | ( | void | ) |
Destructor.
| cl7::char_type fl7::input::Keyboard::GetChar | ( | const unsigned | key, | |
| const bool | shift = false, |
|||
| const bool | alt_gr = false | |||
| ) | [static] |
Converts a given key into a character.
| float fl7::input::Keyboard::GetKeyActionTime | ( | const unsigned | index | ) | const |
Returns the time (in seconds) a specific key is in action (or 0). The key is identified by its index.
| unsigned fl7::input::Keyboard::GetKeyCount | ( | ) | const [inline] |
Returns the number of keys.
| float fl7::input::Keyboard::GetKeyState | ( | const unsigned | index | ) | const |
Returns the current state of a specific key. The key is identified by its index.
| float fl7::input::Keyboard::GetOldKeyState | ( | const unsigned | index | ) | const |
Returns the previous state of a specific key. The key is identified by its index.
| bool fl7::input::Keyboard::IsKeyDown | ( | const unsigned | index | ) | const |
Returns true, if a specific key is down. The key is identified by its index.
| bool fl7::input::Keyboard::IsKeyInAction | ( | const unsigned | index | ) |
Returns true, if a given key has been pressed or is still down since a certain amount of time. If the key is still down, the function does not inherently return true: The function only returns true periodically. The key is identified by its index.
| bool fl7::input::Keyboard::IsKeyPressed | ( | const unsigned | index | ) | const |
Returns true, if a specific key has been pressed. The key is identified by its index.
| bool fl7::input::Keyboard::IsKeyReleased | ( | const unsigned | index | ) | const |
Returns true, if a specific key has been released. The key is identified by its index.
| void fl7::input::Keyboard::UpdateState | ( | const float | time | ) |
Updates the state of the mouse (axes, buttons, etc.).
const unsigned fl7::input::Keyboard::_0 = 28 [static] |
const unsigned fl7::input::Keyboard::_1 = 19 [static] |
const unsigned fl7::input::Keyboard::_2 = 20 [static] |
const unsigned fl7::input::Keyboard::_3 = 21 [static] |
const unsigned fl7::input::Keyboard::_4 = 22 [static] |
const unsigned fl7::input::Keyboard::_5 = 23 [static] |
const unsigned fl7::input::Keyboard::_6 = 24 [static] |
const unsigned fl7::input::Keyboard::_7 = 25 [static] |
const unsigned fl7::input::Keyboard::_8 = 26 [static] |
const unsigned fl7::input::Keyboard::_9 = 27 [static] |
const unsigned fl7::input::Keyboard::A = 40 [static] |
const unsigned fl7::input::Keyboard::ADD = 82 [static] |
const unsigned fl7::input::Keyboard::APOSTROPHE = 85 [static] |
const unsigned fl7::input::Keyboard::APPS = 101 [static] |
const unsigned fl7::input::Keyboard::B = 41 [static] |
const unsigned fl7::input::Keyboard::BACK = 31 [static] |
const unsigned fl7::input::Keyboard::BACKSLASH = 86 [static] |
const unsigned fl7::input::Keyboard::C = 42 [static] |
const unsigned fl7::input::Keyboard::CAPITAL = 83 [static] |
const unsigned fl7::input::Keyboard::COMMA = 89 [static] |
const unsigned fl7::input::Keyboard::D = 43 [static] |
const unsigned fl7::input::Keyboard::DECIMAL = 106 [static] |
const unsigned fl7::input::Keyboard::DELETE = 69 [static] |
const unsigned fl7::input::Keyboard::DIM_COUNT = 108 [static] |
const unsigned fl7::input::Keyboard::DIVIDE = 36 [static] |
const unsigned fl7::input::Keyboard::DOWN = 104 [static] |
const unsigned fl7::input::Keyboard::E = 44 [static] |
const unsigned fl7::input::Keyboard::END = 70 [static] |
const unsigned fl7::input::Keyboard::EQUALS = 30 [static] |
const unsigned fl7::input::Keyboard::ESCAPE = 0 [static] |
const unsigned fl7::input::Keyboard::F = 45 [static] |
const unsigned fl7::input::Keyboard::F1 = 1 [static] |
const unsigned fl7::input::Keyboard::F10 = 10 [static] |
const unsigned fl7::input::Keyboard::F11 = 11 [static] |
const unsigned fl7::input::Keyboard::F12 = 12 [static] |
const unsigned fl7::input::Keyboard::F13 = 13 [static] |
const unsigned fl7::input::Keyboard::F14 = 14 [static] |
const unsigned fl7::input::Keyboard::F15 = 15 [static] |
const unsigned fl7::input::Keyboard::F2 = 2 [static] |
const unsigned fl7::input::Keyboard::F3 = 3 [static] |
const unsigned fl7::input::Keyboard::F4 = 4 [static] |
const unsigned fl7::input::Keyboard::F5 = 5 [static] |
const unsigned fl7::input::Keyboard::F6 = 6 [static] |
const unsigned fl7::input::Keyboard::F7 = 7 [static] |
const unsigned fl7::input::Keyboard::F8 = 8 [static] |
const unsigned fl7::input::Keyboard::F9 = 9 [static] |
const unsigned fl7::input::Keyboard::G = 46 [static] |
const unsigned fl7::input::Keyboard::GRAVE = 107 [static] |
const unsigned fl7::input::Keyboard::H = 47 [static] |
const unsigned fl7::input::Keyboard::HOME = 33 [static] |
const unsigned fl7::input::Keyboard::I = 48 [static] |
const unsigned fl7::input::Keyboard::INSERT = 32 [static] |
const unsigned fl7::input::Keyboard::J = 49 [static] |
const unsigned fl7::input::Keyboard::K = 50 [static] |
const unsigned fl7::input::Keyboard::L = 51 [static] |
const unsigned fl7::input::Keyboard::LALT = 97 [static] |
const unsigned fl7::input::Keyboard::LBRACKET = 66 [static] |
const unsigned fl7::input::Keyboard::LCONTROL = 95 [static] |
const unsigned fl7::input::Keyboard::LEFT = 103 [static] |
const unsigned fl7::input::Keyboard::LSHIFT = 87 [static] |
const unsigned fl7::input::Keyboard::LWIN = 96 [static] |
const unsigned fl7::input::Keyboard::M = 52 [static] |
const unsigned fl7::input::Keyboard::MINUS = 29 [static] |
const unsigned fl7::input::Keyboard::MULTIPLY = 37 [static] |
const unsigned fl7::input::Keyboard::N = 53 [static] |
const unsigned fl7::input::Keyboard::NEXT = 71 [static] |
const unsigned fl7::input::Keyboard::NUMLOCK = 35 [static] |
const unsigned fl7::input::Keyboard::NUMPAD0 = 72 [static] |
const unsigned fl7::input::Keyboard::NUMPAD1 = 73 [static] |
const unsigned fl7::input::Keyboard::NUMPAD2 = 74 [static] |
const unsigned fl7::input::Keyboard::NUMPAD3 = 75 [static] |
const unsigned fl7::input::Keyboard::NUMPAD4 = 76 [static] |
const unsigned fl7::input::Keyboard::NUMPAD5 = 77 [static] |
const unsigned fl7::input::Keyboard::NUMPAD6 = 78 [static] |
const unsigned fl7::input::Keyboard::NUMPAD7 = 79 [static] |
const unsigned fl7::input::Keyboard::NUMPAD8 = 80 [static] |
const unsigned fl7::input::Keyboard::NUMPAD9 = 81 [static] |
const unsigned fl7::input::Keyboard::NUMPADENTER = 94 [static] |
const unsigned fl7::input::Keyboard::O = 54 [static] |
const unsigned fl7::input::Keyboard::OEM_102 = 88 [static] |
const unsigned fl7::input::Keyboard::P = 55 [static] |
const unsigned fl7::input::Keyboard::PAUSE = 18 [static] |
const unsigned fl7::input::Keyboard::PERIOD = 90 [static] |
const unsigned fl7::input::Keyboard::PRIOR = 34 [static] |
const unsigned fl7::input::Keyboard::Q = 56 [static] |
const unsigned fl7::input::Keyboard::R = 57 [static] |
const unsigned fl7::input::Keyboard::RALT = 99 [static] |
const unsigned fl7::input::Keyboard::RBRACKET = 67 [static] |
const unsigned fl7::input::Keyboard::RCONTROL = 102 [static] |
const unsigned fl7::input::Keyboard::RETURN = 68 [static] |
const unsigned fl7::input::Keyboard::RIGHT = 105 [static] |
const unsigned fl7::input::Keyboard::RSHIFT = 92 [static] |
const unsigned fl7::input::Keyboard::RWIN = 100 [static] |
const unsigned fl7::input::Keyboard::S = 58 [static] |
const unsigned fl7::input::Keyboard::SCROLL = 17 [static] |
const unsigned fl7::input::Keyboard::SEMICOLON = 84 [static] |
const unsigned fl7::input::Keyboard::SLASH = 91 [static] |
const unsigned fl7::input::Keyboard::SPACE = 98 [static] |
const unsigned fl7::input::Keyboard::SUBTRACT = 38 [static] |
const unsigned fl7::input::Keyboard::SYSRQ = 16 [static] |
const unsigned fl7::input::Keyboard::T = 59 [static] |
const unsigned fl7::input::Keyboard::TAB = 39 [static] |
const unsigned fl7::input::Keyboard::U = 60 [static] |
const unsigned fl7::input::Keyboard::UP = 93 [static] |
const unsigned fl7::input::Keyboard::V = 61 [static] |
const unsigned fl7::input::Keyboard::W = 62 [static] |
const unsigned fl7::input::Keyboard::X = 63 [static] |
const unsigned fl7::input::Keyboard::Y = 64 [static] |
const unsigned fl7::input::Keyboard::Z = 65 [static] |
1.7.1