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 The X axis of the point-of-view hat.
Utility string class that automatically handles conversions between types and encodings.
String name
Name of the joystick.
Give access to the real-time state of the joysticks.
Axis
Axes supported by SFML joysticks.
Structure holding a joystick's identification.
unsigned int productId
Product identifier.
unsigned int vendorId
Manufacturer identifier.