5#ifndef __EVENT_KEYBOARD_H__
6#define __EVENT_KEYBOARD_H__
12const std::string KEYBOARD_EVENT =
"df-keyboard";
27 SPACE, RETURN, ESCAPE, TAB, LEFTARROW, RIGHTARROW, UPARROW, DOWNARROW,
28 PAUSE, MINUS, PLUS, TILDE, PERIOD, COMMA, SLASH,
29 EQUAL, BACKSLASH, MULTIPLY, QUOTE, SEMICOLON,
30 LEFTCONTROL, RIGHTCONTROL,
31 LEFTSHIFT, RIGHTSHIFT, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
32 A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z,
33 NUM1, NUM2, NUM3, NUM4, NUM5, NUM6, NUM7, NUM8, NUM9, NUM0, BACKSPACE,
34 QMARK, LBRACKET, RBRACKET, GRAVE,
Definition: EventKeyboard.h:38
virtual void setKeyboardAction(EventKeyboardAction new_action)
Set keyboard event action.
virtual void setKey(Keyboard::Key new_key)
Set key in event.
EventKeyboardAction m_keyboard_action
Key action.
Definition: EventKeyboard.h:42
Keyboard::Key m_key_val
Key value.
Definition: EventKeyboard.h:41
virtual Keyboard::Key getKey() const
Get key from event.
virtual EventKeyboardAction getKeyboardAction() const
Get keyboard event action.
Key
Keys Dragonfly recognizes.
Definition: EventKeyboard.h:25
An animation for a sprite.
Definition: Animation.h:15
EventKeyboardAction
Types of keyboard actions Dragonfly recognizes.
Definition: EventKeyboard.h:15
@ KEY_DOWN
Is down.
Definition: EventKeyboard.h:19
@ KEY_PRESSED
Was down.
Definition: EventKeyboard.h:17
@ UNDEFINED_KEYBOARD_ACTION
Undefined.
Definition: EventKeyboard.h:16
@ KEY_RELEASED
Was released.
Definition: EventKeyboard.h:18