25 #ifndef SFML_JOYSTICK_HPP
26 #define SFML_JOYSTICK_HPP
31 #include <SFML/Window/Export.hpp>
32 #include <SFML/System/String.hpp>
93 static bool isConnected(
unsigned int joystick);
105 static unsigned int getButtonCount(
unsigned int joystick);
118 static bool hasAxis(
unsigned int joystick,
Axis axis);
131 static bool isButtonPressed(
unsigned int joystick,
unsigned int button);
144 static float getAxisPosition(
unsigned int joystick,
Axis axis);
165 static void update();
171 #endif // SFML_JOYSTICK_HPP
unsigned int productId
Product identifier.
unsigned int vendorId
Manufacturer identifier.
Give access to the real-time state of the joysticks.
sf::String name
Name of the joystick.
Structure holding a joystick's identification.
Utility string class that automatically handles conversions between types and encodings.
The X axis of the point-of-view hat.
Axis
Axes supported by SFML joysticks.