#include <csinput.h>
Inheritance diagram for iJoystickDriver:

Public Methods | |
| virtual void | Reset ()=0 |
| Call to release all joystick buttons (when focus switches from application window, for example). | |
| virtual int | GetLastX (int number)=0 |
| Query last joystick X position. | |
| virtual int | GetLastY (int number)=0 |
| Query last joystick Y position. | |
| virtual bool | GetLastButton (int number, int button)=0 |
| Query the last known joystick button state. | |
| virtual void | DoButton (int number, int button, bool down, int x, int y)=0 |
| Call this to add a 'joystick button down/up' event to queue. | |
| virtual void | DoMotion (int number, int x, int y)=0 |
| Call this to add a 'joystick moved' event to queue. | |
p> The joystick driver is responsible for tracking current joystick state and also for generating joystick events. Typically, one instance of this object is available from the shared-object registry (iObjectRegistry) under the name "crystalspace.driver.input.generic.joystick".