25 #ifndef EVENTS_JOYSTICK_H 26 #define EVENTS_JOYSTICK_H 30 #include <SDL_joystick.h> 33 #include <boost/noncopyable.hpp> 84 #endif // EVENTS_JOYSTICK_H int getHatCount() const
Return the number of hats the joystick has.
#define START_IGNORE_IMPLICIT_FALLTHROUGH
int getButtonCount() const
Return the number of buttons the joystick has.
A class holding an UTF-8 string.
bool enable()
Enable the joystick.
static void destroy(T *x)
int getAxisCount() const
Return the number of axes the joystick has.
bool isEnabled() const
Is the joystick currently enabled?
#define STOP_IGNORE_IMPLICIT_FALLTHROUGH
Simple deallocator concept.
int getIndex() const
Return the joystick's index within the available joysticks.
Compiler-specific defines to mark an implicit switch-case fallthrough.
void disable()
Disable the joystick.
const Common::UString & getName() const
Return the joystick's name.
int getBallCount() const
Return the number of balls the joystick has.