Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
Public Attributes | List of all members
blowbox::KeyboardState::KeyState Struct Reference

#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
 

Detailed Description

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.

Member Data Documentation

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!)


The documentation for this struct was generated from the following file: