Loading...
Searching...
No Matches
Joystick.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
Utility string class that automatically handles conversions between types and encodings.
Definition String.hpp:89
Identification getIdentification(unsigned int joystick)
Get the joystick information.
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.
Definition Joystick.hpp:45
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.
Definition Joystick.hpp:46
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.
Definition Joystick.hpp:71