nCine  2025.04.r498-9d36345
A cross-platform 2D game engine
Public Member Functions | List of all members
ncine::JoystickState Class Referenceabstract

Information about the joystick state. More...

#include <InputEvents.h>

Public Member Functions

virtual bool isButtonDown (int buttonId) const =0
 Returns true if the specified button is down this frame.
 
virtual bool isButtonPressed (int buttonId) const =0
 Returns true if the specified button went from not down to down this frame.
 
virtual bool isButtonReleased (int buttonId) const =0
 Returns true if the specified button went from down to not down this frame.
 
virtual unsigned char hatState (int hatId) const =0
 Returns the state of the specified hat.
 
virtual short int axisValue (int axisId) const =0
 Returns a value between -32768 and 32767 for a joystick axis.
 
virtual float axisNormValue (int axisId) const =0
 Returns a normalized value between -1.0 and 1.0 for a joystick axis.
 

Detailed Description

Information about the joystick state.


The documentation for this class was generated from the following file: