nCine::JoyMappedState class

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

JoyMappedState()

Public functions

auto isButtonPressed(ButtonName name) const -> bool
Returns true if the specified mapped button is pressed.
auto axisValue(AxisName name) const -> float
Returns the value of the specified mapped axis.