29 #ifndef THOR_JOYSTICK_HPP
30 #define THOR_JOYSTICK_HPP
34 #include <SFML/Window/Joystick.hpp>
70 JoystickAxis(
unsigned int joystickId, sf::Joystick::Axis axis,
float threshold,
bool above);
87 struct THOR_API JoystickBuilder
94 sf::Joystick::Axis axis;
95 unsigned int joystickId;
98 explicit JoystickBuilder(
unsigned int joystickId);
100 Axis axis(sf::Joystick::Axis axis);
102 unsigned int joystickId;
107 detail::JoystickBuilder THOR_API joystick(
unsigned int joystickId);
111 #endif // THOR_JOYSTICK_HPP
Contains information about a joystick number, an axis and its threshold.
Definition: Joystick.hpp:61
unsigned int joystickId
The joystick number.
Definition: Joystick.hpp:72
Definition: Animator.hpp:42
sf::Joystick::Axis axis
The joystick axis.
Definition: Joystick.hpp:73
Configuration header of the library.
float threshold
Position threshold above/below which an action is triggered.
Definition: Joystick.hpp:74
bool above
True if position must be above threshold, false if below.
Definition: Joystick.hpp:75