18#ifndef INCLUDED_JOYSTICK
19#define INCLUDED_JOYSTICK
CJoystick g_Joystick
Definition: Joystick.cpp:26
Definition: Joystick.h:24
CJoystick()
Definition: Joystick.cpp:28
bool IsEnabled()
Returns true if initialised and the joystick is present and enabled by configuration.
Definition: Joystick.cpp:78
float GetAxisValue(int axis)
Returns current value of the given joystick axis, in the range [-1, +1].
Definition: Joystick.cpp:83
SDL_Joystick * m_Joystick
Definition: Joystick.h:44
int m_Deadzone
Definition: Joystick.h:45
void Initialise()
Initialises joystick support.
Definition: Joystick.cpp:33