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

#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
 

Detailed Description

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.

Member Data Documentation

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


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