#include <InputDeviceJoystick.h>
Inheritance diagram for Engine::InputDeviceJoystick:
Public Member Functions | |
InputDeviceJoystick (int index) | |
Process the input of one joystick detected by SDL. | |
~InputDeviceJoystick () | |
int | get_acceleration () |
Get a number representing the acceleration or breaking. | |
int | get_slide () |
Sideways force . | |
int | get_steering () |
Stearing angle. | |
void | poll () |
Poll for events, if necessary. | |
Private Attributes | |
int | joystick_index |
The index SDL uses for the joystick. | |
SDL_Joystick * | sdl_joystick_handle |
int | steering |
int | acceleration |
int | slide |
bool | slide_left_down |
bool | slide_right_down |
Definition at line 26 of file InputDeviceJoystick.h.
Engine::InputDeviceJoystick::InputDeviceJoystick | ( | int | index | ) |
Process the input of one joystick detected by SDL.
index | The index SDL uses for the joystick. |
Definition at line 19 of file InputDeviceJoystick.cpp.
Engine::InputDeviceJoystick::~InputDeviceJoystick | ( | ) |
Definition at line 32 of file InputDeviceJoystick.cpp.
int Engine::InputDeviceJoystick::get_acceleration | ( | ) | [virtual] |
Get a number representing the acceleration or breaking.
Implements Engine::InputDevice.
Definition at line 45 of file InputDeviceJoystick.cpp.
int Engine::InputDeviceJoystick::get_slide | ( | ) | [virtual] |
Sideways force .
Implements Engine::InputDevice.
Definition at line 50 of file InputDeviceJoystick.cpp.
int Engine::InputDeviceJoystick::get_steering | ( | ) | [virtual] |
Stearing angle.
Implements Engine::InputDevice.
Definition at line 40 of file InputDeviceJoystick.cpp.
void Engine::InputDeviceJoystick::poll | ( | ) | [virtual] |
Poll for events, if necessary.
Reimplemented from Engine::InputDevice.
Definition at line 57 of file InputDeviceJoystick.cpp.
int Engine::InputDeviceJoystick::acceleration [private] |
Definition at line 41 of file InputDeviceJoystick.h.
int Engine::InputDeviceJoystick::joystick_index [private] |
SDL_Joystick* Engine::InputDeviceJoystick::sdl_joystick_handle [private] |
Definition at line 40 of file InputDeviceJoystick.h.
int Engine::InputDeviceJoystick::slide [private] |
Definition at line 41 of file InputDeviceJoystick.h.
bool Engine::InputDeviceJoystick::slide_left_down [private] |
Definition at line 42 of file InputDeviceJoystick.h.
bool Engine::InputDeviceJoystick::slide_right_down [private] |
Definition at line 42 of file InputDeviceJoystick.h.
int Engine::InputDeviceJoystick::steering [private] |
Definition at line 41 of file InputDeviceJoystick.h.
Generated at Mon Sep 6 00:41:17 2010 by Doxygen version 1.4.7 for Racer version svn335.