nCine::Backends::Qt5KeyboardState class

Simulated information about Qt5 keyboard state.

Qt5 delivers key press and release events rather than exposing a pollable keyboard array, so the down state of every key is tracked in a simulated array updated from those events.

Base classes

class nCine::KeyboardState
Current state of the keyboard.

Constructors, destructors, conversion operators

Qt5KeyboardState()

Public functions

auto isKeyDown(Keys key) const -> bool override
Returns true if the specified key is currently down.