39 if (isMiddleButtonDown()) ++num;
static ModifierKeys getCurrentModifiersRealtime() noexcept
On desktop platforms this method will check all the mouse and key states and return a ModifierKeys ob...
Represents the state of the mouse buttons and modifier keys.
static ModifierKeys currentModifiers
This object represents the last-known state of the keyboard and mouse buttons.
bool isRightButtonDown() const noexcept
Checks whether the flag is set for the right mouse-button.
static ModifierKeys getCurrentModifiersRealtime() noexcept
Creates a ModifierKeys object to represent the current state of the keyboard and mouse buttons.
int getNumMouseButtonsDown() const noexcept
Returns the total number of mouse buttons that are down.
bool isLeftButtonDown() const noexcept
Checks whether the flag is set for the left mouse-button.
ModifierKeys()=default
Creates a ModifierKeys object with no flags set.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...