nCine::Backends::UwpJoystickState class

Information about UWP joystick state.

Base classes

class nCine::JoystickState
Current raw state of a joystick.

Public static variables

static unsigned int MaxNumButtons constexpr
static unsigned int MaxNumHats constexpr
static unsigned int MaxNumAxes constexpr

Constructors, destructors, conversion operators

UwpJoystickState()

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 the value of the specified axis, normalized between -1.0 and 1.0.
void resetJoystickState(int joyId)
void simulateButtonsEvents(winrtWGI::GamepadButtons buttons)
void simulateHatsEvents(winrtWGI::GamepadButtons buttons)
void simulateAxisEvent(int axisId, float value)