xoreos
0.0.5
|
#include <joystick.h>
Public Member Functions | |
const Common::UString & | getName () const |
Return the joystick's name. More... | |
int | getIndex () const |
Return the joystick's index within the available joysticks. More... | |
bool | isEnabled () const |
Is the joystick currently enabled? More... | |
bool | enable () |
Enable the joystick. More... | |
void | disable () |
Disable the joystick. More... | |
int | getAxisCount () const |
Return the number of axes the joystick has. More... | |
int | getBallCount () const |
Return the number of balls the joystick has. More... | |
int | getHatCount () const |
Return the number of hats the joystick has. More... | |
int | getButtonCount () const |
Return the number of buttons the joystick has. More... | |
Private Member Functions | |
Joystick (int index) | |
~Joystick () | |
Private Attributes | |
int | _index |
Common::UString | _name |
SDL_Joystick * | _sdlJoy |
Friends | |
class | EventsManager |
template<typename T > | |
void | Common::DeallocatorDefault::destroy (T *) |
Definition at line 40 of file joystick.h.
|
private |
Definition at line 31 of file joystick.cpp.
References _index.
|
private |
Definition at line 35 of file joystick.cpp.
References disable().
void Events::Joystick::disable | ( | ) |
Disable the joystick.
Definition at line 64 of file joystick.cpp.
References _sdlJoy.
Referenced by ~Joystick().
bool Events::Joystick::enable | ( | ) |
Enable the joystick.
Definition at line 51 of file joystick.cpp.
References _index, _name, _sdlJoy, and isEnabled().
int Events::Joystick::getAxisCount | ( | ) | const |
Return the number of axes the joystick has.
Definition at line 69 of file joystick.cpp.
References _sdlJoy.
int Events::Joystick::getBallCount | ( | ) | const |
Return the number of balls the joystick has.
Definition at line 76 of file joystick.cpp.
References _sdlJoy.
int Events::Joystick::getButtonCount | ( | ) | const |
Return the number of buttons the joystick has.
Definition at line 90 of file joystick.cpp.
References _sdlJoy.
int Events::Joystick::getHatCount | ( | ) | const |
Return the number of hats the joystick has.
Definition at line 83 of file joystick.cpp.
References _sdlJoy.
int Events::Joystick::getIndex | ( | ) | const |
Return the joystick's index within the available joysticks.
Definition at line 39 of file joystick.cpp.
References _index.
const Common::UString & Events::Joystick::getName | ( | ) | const |
bool Events::Joystick::isEnabled | ( | ) | const |
Is the joystick currently enabled?
Definition at line 47 of file joystick.cpp.
References _sdlJoy.
Referenced by enable().
|
friend |
|
friend |
Definition at line 76 of file joystick.h.
|
private |
Definition at line 68 of file joystick.h.
Referenced by enable(), getIndex(), and Joystick().
|
private |
Definition at line 69 of file joystick.h.
|
private |
Definition at line 70 of file joystick.h.
Referenced by disable(), enable(), getAxisCount(), getBallCount(), getButtonCount(), getHatCount(), and isEnabled().