Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
|
#include <keyboard_state.h>
Public Attributes | |
bool | down = false |
bool | pressed = false |
bool | released = false |
bool | modifier_control = false |
bool | modifier_alt = false |
bool | modifier_shift = false |
Keeps track of the state of a key on the keyboard.
Every key on your keyboard has a certain state. This struct keeps track of that.
bool blowbox::KeyboardState::KeyState::down = false |
Whether the key is currently held down.
bool blowbox::KeyboardState::KeyState::modifier_alt = false |
Whether the alt-modifier was pressed together with this key.
bool blowbox::KeyboardState::KeyState::modifier_control = false |
Whether the control-modifier was pressed together with this key.
bool blowbox::KeyboardState::KeyState::modifier_shift = false |
Whether the shift-modifier was pressed together with this key.
bool blowbox::KeyboardState::KeyState::pressed = false |
Whether the key is currently pressed. (only true for 1 frame!)
bool blowbox::KeyboardState::KeyState::released = false |
Whether the key is currently released. (only true for 1 frame!)