1 #ifndef CPP3DS_JOYSTICK_HPP
2 #define CPP3DS_JOYSTICK_HPP
4 #include <cpp3ds/System/String.hpp>
84 static bool hasAxis(
unsigned int joystick,
Axis axis);
97 static bool isButtonPressed(
unsigned int joystick,
unsigned int button);
static Identification getIdentification(unsigned int joystick)
Get the joystick information.
Utility string class that automatically handles conversions between types and encodings.
static unsigned int getButtonCount(unsigned int joystick)
Return the number of buttons supported by a joystick.
Maximum number of supported axes.
Structure holding a joystick's identification.
cpp3ds::String name
Name of the joystick.
static bool isButtonPressed(unsigned int joystick, unsigned int button)
Check if a joystick button is pressed.
static bool hasAxis(unsigned int joystick, Axis axis)
Check if a joystick supports a given axis.
Axis
Axes supported by SFML joysticks.
static bool isConnected(unsigned int joystick)
Check if a joystick is connected.
Maximum number of supported buttons.
Maximum number of supported joysticks.
unsigned int productId
Product identifier.
The Y axis of the point-of-view hat.
static float getAxisPosition(unsigned int joystick, Axis axis)
Get the current position of a joystick axis.
unsigned int vendorId
Manufacturer identifier.
Give access to the real-time state of the joysticks.
The X axis of the point-of-view hat.
static void update()
Update the states of all joysticks.