JoyMappedState class
#include <nCine/Input/InputEvents.h>
Current state of a joystick translated through its mapping into unified buttons and axes.
Public static variables
-
static std::
uint32_t NumButtons constexpr - Number of mapped buttons.
-
static std::
uint32_t NumAxes constexpr - Number of mapped axes.
Constructors, destructors, conversion operators
Public functions
- auto isButtonPressed(ButtonName name) const -> bool
- Returns
trueif the specified mapped button is pressed. - auto axisValue(AxisName name) const -> float
- Returns the value of the specified mapped axis.