Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
|
#include <mouse_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 button on the mouse.
Every key on your mouse has a certain state. This struct keeps track of that.
bool blowbox::MouseState::MouseButtonState::down = false |
Whether the key is currently held down.
bool blowbox::MouseState::MouseButtonState::modifier_alt = false |
Whether the alt-modifier was pressed together with this key.
bool blowbox::MouseState::MouseButtonState::modifier_control = false |
Whether the control-modifier was pressed together with this key.
bool blowbox::MouseState::MouseButtonState::modifier_shift = false |
Whether the shift-modifier was pressed together with this key.
bool blowbox::MouseState::MouseButtonState::pressed = false |
Whether the key is currently pressed. (only true for 1 frame!)
bool blowbox::MouseState::MouseButtonState::released = false |
Whether the key is currently released. (only true for 1 frame!)