Pyrogenesis
trunk
|
#include <Joystick.h>
Public Member Functions | |
CJoystick () | |
void | Initialise () |
Initialises joystick support. More... | |
bool | IsEnabled () |
Returns true if initialised and the joystick is present and enabled by configuration. More... | |
float | GetAxisValue (int axis) |
Returns current value of the given joystick axis, in the range [-1, +1]. More... | |
Private Attributes | |
SDL_Joystick * | m_Joystick |
int | m_Deadzone |
CJoystick::CJoystick | ( | ) |
float CJoystick::GetAxisValue | ( | int | axis | ) |
Returns current value of the given joystick axis, in the range [-1, +1].
void CJoystick::Initialise | ( | ) |
Initialises joystick support.
bool CJoystick::IsEnabled | ( | ) |
Returns true if initialised and the joystick is present and enabled by configuration.
|
private |
|
private |