Class that keeps track of all the keys on the keyboard. More...
#include <key.hpp>
Public Member Functions | |
CKey () | |
bool | operator[] (int k) const |
Static Public Member Functions | |
static bool | is_uncomposable (const SDL_KeyboardEvent &event) |
Private Attributes | |
const uint8_t * | key_list |
Class that keeps track of all the keys on the keyboard.
Whether any key is pressed or not can be found by using its operator[]. Note though that it is generally better to use key events to see when keys are pressed rather than to poll using this object.
|
static |
Definition at line 28 of file key.cpp.
Referenced by hotkey::create_hotkey(), and hotkey::hotkey_keyboard::matches_helper().
|
private |
Definition at line 30 of file key.hpp.
Referenced by operator[]().