45static constexpr unsigned int Count{8};
Utility string class that automatically handles conversions between types and encodings.
Give access to the real-time state of the joysticks.
Identification getIdentification(unsigned int joystick)
Get the joystick information.
static constexpr unsigned int AxisCount
Maximum number of supported axes.
unsigned int getButtonCount(unsigned int joystick)
Return the number of buttons supported by a joystick.
static constexpr unsigned int Count
Constants related to joysticks capabilities.
Axis
Axes supported by SFML joysticks.
@ PovX
The X axis of the point-of-view hat.
@ PovY
The Y axis of the point-of-view hat.
float getAxisPosition(unsigned int joystick, Axis axis)
Get the current position of a joystick axis.
static constexpr unsigned int ButtonCount
Maximum number of supported buttons.
bool isConnected(unsigned int joystick)
Check if a joystick is connected.
void update()
Update the states of all joysticks.
bool isButtonPressed(unsigned int joystick, unsigned int button)
Check if a joystick button is pressed.
bool hasAxis(unsigned int joystick, Axis axis)
Check if a joystick supports a given axis.
Structure holding a joystick's identification.
String name
Name of the joystick.
unsigned int productId
Product identifier.
unsigned int vendorId
Manufacturer identifier.