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 GetHatState(int hatId) const -> unsigned char override
Returns the state of the specified hat.
auto GetAxisValue(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)