nCine::Backends::GlfwJoystickState class

Information about GLFW joystick state.

Base classes

class nCine::JoystickState
Information about the joystick state.

Constructors, destructors, conversion operators

GlfwJoystickState()

Public functions

auto isButtonPressed(int buttonId) const -> bool override
Returns 'true' if 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 a normalized value between -1.0 and 1.0 for a joystick axis.