Allolib
1.0
C++ Components For Interactive Multimedia
|
#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/io/al_Window.hpp>
Public Types | |
enum | Key { ENTER = 3 , BACKSPACE = 8 , TAB = 9 , RETURN = 13 , ESCAPE = 27 , DELETE = 127 , F1 = 256 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 , F10 , F11 , F12 , INSERT , LEFT , UP , RIGHT , DOWN , PAGE_DOWN , PAGE_UP , END , HOME } |
Non-printable keys. | |
Public Member Functions | |
int | key () const |
Returns character or code of last key event. | |
int | keyAsNumber () const |
Returns decimal number correlating to key code. | |
bool | alt () const |
Whether an alt key is down. | |
bool | caps () const |
Whether capslock is down. | |
bool | ctrl () const |
Whether a control key is down. | |
bool | meta () const |
Whether a meta (e.g. windows, apple) key is down. | |
bool | shift () const |
Whether a shift key is down. | |
bool | down () const |
Whether last event was button down. | |
bool | isNumber () const |
Whether key is a number key. | |
bool | key (int k) const |
Whether the last key was 'k'. | |
void | alt (bool state) |
Set alt key state. | |
void | caps (bool state) |
Set alt key state. | |
void | ctrl (bool state) |
Set ctrl key state. | |
void | meta (bool state) |
Set meta key state. | |
void | shift (bool state) |
Set shift key state. | |
void | print (std::ostream &stream) const |
Print keyboard state. | |
Protected Member Functions | |
void | setKey (int k, bool v) |
Protected Attributes | |
int | mKeycode |
bool | mDown |
bool | mModifiers [5] |
Friends | |
class | WindowImpl |
Keyboard state
Definition at line 73 of file al_Window.hpp.