#include <Joystick.h>
Inheritance diagram for Teem::JoystickController:

Very useful for testing.
Public Member Functions | |
| JoystickController () | |
| Constructor, initialise joystick. | |
| virtual void | setInput (unsigned index, double val) |
| set values gotten from joystick | |
| virtual double | getOutput (unsigned index) |
| get info from the joystick | |
| virtual void | step () |
| Do a step, process inputs and compute outputs. | |
| bool | isButtonDown (unsigned button) |
| Return true if button is pressed. | |
Protected Attributes | |
| double | output [JOYSTICK_NB_BUTTONS] |
| values of buttons | |
| _SDL_Joystick * | joy |
| pointer to SDL's joystick | |
1.4.2