#include <JoystickInput.h>
Inheritance diagram for JoystickInput::

Public Methods | |
| JoystickInput (unsigned int id) | |
| Constructor. More... | |
| ~JoystickInput () | |
| Destructor. | |
| void | start () |
| Start polling for input data. | |
| void | stop () |
| Stop polling for input data. | |
| unsigned int | poll (EventVector *events) |
| Poll the joystick for a vector of input events. More... | |
Private Attributes | |
| Joystick * | joystick |
| Handle to the current joystick device instance. | |
| bool | cherry |
| Flag to indicate whether we've already been "polled". | |
| bool | buttons [NUM_BUTTONS] |
| Array of button states (on or off). | |
| DIJOYSTATE2 | last_state |
| Structure storing the last polled state of the joystick. | |
|
|
Constructor.
|
|
|
Poll the joystick for a vector of input events.
Reimplemented from InputObject. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001