JoystickState class
#include <nCine/Input/InputEvents.h>
Current raw state of a joystick.
Derived classes
- class GlfwJoystickState
- Information about GLFW joystick state.
- class Qt5JoystickState
- Information about Qt5 joystick state.
- class SdlJoystickState
- Information about SDL2 joystick state.
- class UwpJoystickState
- Information about UWP joystick state.
Constructors, destructors, conversion operators
- ~JoystickState() virtual
Public functions
- auto isButtonPressed(int buttonId) const -> bool pure virtual
- Returns
trueif the specified button is pressed. - auto hatState(int hatId) const -> unsigned char pure virtual
- Returns the state of the specified hat.
- auto axisValue(int axisId) const -> float pure virtual
- Returns the value of the specified axis, normalized between -1.0 and 1.0.