|
Pyrogenesis
13997
|
#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 |
Definition at line 23 of file Joystick.h.
| CJoystick::CJoystick | ( | ) |
Definition at line 28 of file Joystick.cpp.
| float CJoystick::GetAxisValue | ( | int | axis | ) |
Returns current value of the given joystick axis, in the range [-1, +1].
Definition at line 87 of file Joystick.cpp.
| void CJoystick::Initialise | ( | ) |
Initialises joystick support.
Definition at line 33 of file Joystick.cpp.
| bool CJoystick::IsEnabled | ( | ) |
Returns true if initialised and the joystick is present and enabled by configuration.
Definition at line 82 of file Joystick.cpp.
|
private |
Definition at line 45 of file Joystick.h.
|
private |
Definition at line 44 of file Joystick.h.
1.8.5