class
#include <nCine/Input/InputEvents.h>
JoystickState Information about the joystick state.
Derived classes
- class GlfwJoystickState
- Information about GLFW joystick state.
- class Qt5JoystickState
- Information about Qt5 joystick state.
- class SdlJoystickState
- Information about SDL 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 'true' if 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 a normalized value between -1.0 and 1.0 for a joystick axis.