iJoystickDriver Struct Reference
[Event handling]
Generic Joystick driver.
More...
#include <iutil/csinput.h>
Inheritance diagram for iJoystickDriver:

Public Member Functions | |
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 X position of joystick 'number'. | |
virtual int | GetLastY (int number)=0 |
Query last Y position of joystick 'number'. | |
virtual bool | GetLastButton (int number, int button)=0 |
Query the last known button state of joystick 'number'. | |
virtual void | DoButton (int number, int button, bool down, int x, int y)=0 |
Call this to add a 'button down/up' event to queue. | |
virtual void | DoMotion (int number, int x, int y)=0 |
Call this to add a 'moved' event to queue for joystick 'number'. |
Detailed Description
Generic Joystick driver.The joystick driver is responsible for tracking current joystick state and also for synthesizing joystick movement events. Multiple joysticks are supported; they are numbered starting at one. Joystick button numbers also start at one. Typically, a single instance of this object is available from the shared-object registry (iObjectRegistry) under the name "crystalspace.driver.input.generic.joystick".
Main creators of instances implementing this interface:
Main ways to get pointers to this interface:- CS_QUERY_REGISTRY()
Definition at line 234 of file csinput.h.
Member Function Documentation
|
Call this to add a 'button down/up' event to queue. Joystick numbers start at 1. Button numbers start at 1. Implemented in csJoystickDriver. |
|
Call this to add a 'moved' event to queue for joystick 'number'.
Implemented in csJoystickDriver. |
|
Query the last known button state of joystick 'number'. Joystick numbers start at 1. Button numbers start at 1. Implemented in csJoystickDriver. |
|
Query last X position of joystick 'number'.
Implemented in csJoystickDriver. |
|
Query last Y position of joystick 'number'.
Implemented in csJoystickDriver. |
|
Call to release all joystick buttons (when focus switches from application window, for example).
Implemented in csJoystickDriver. Referenced by csJoystickDriver::LostFocus(). |
The documentation for this struct was generated from the following file:
- iutil/csinput.h
Generated for Crystal Space by doxygen 1.3.9.1