25 #ifndef SFML_JOYSTICK_H
26 #define SFML_JOYSTICK_H
31 #include <SFML/Window/Export.h>
32 #include <SFML/Window/JoystickIdentification.h>
42 sfJoystickButtonCount = 32,
43 sfJoystickAxisCount = 8
72 CSFML_WINDOW_API sfBool sfJoystick_isConnected(
unsigned int joystick);
84 CSFML_WINDOW_API
unsigned int sfJoystick_getButtonCount(
unsigned int joystick);
97 CSFML_WINDOW_API sfBool sfJoystick_hasAxis(
unsigned int joystick, sfJoystickAxis axis);
110 CSFML_WINDOW_API sfBool sfJoystick_isButtonPressed(
unsigned int joystick,
unsigned int button);
123 CSFML_WINDOW_API
float sfJoystick_getAxisPosition(
unsigned int joystick, sfJoystickAxis axis);
147 CSFML_WINDOW_API
void sfJoystick_update(
void);
150 #endif // SFML_JOYSTICK_H