Qt5JoystickState class
#include <nCine/Backends/Qt5InputManager.h>
Information about Qt5 joystick state.
Backed by a QGamepad when WITH_QT5GAMEPAD is enabled; otherwise a no-op stub that always reports no input.
Base classes
- class nCine::JoystickState
- Current raw state of a joystick.
Constructors, destructors, conversion operators
Public functions
- auto isButtonPressed(int buttonId) const -> bool override
- Returns
trueif the specified button is pressed. - auto hatState(int hatId) const -> unsigned char override
- Returns the state of the specified hat.
- auto axisValue(int axisId) const -> float override
- Returns the value of the specified axis, normalized between -1.0 and 1.0.