csJoystickDriver Class Reference
Generic Joystick driver. More...
#include <csinput.h>
Inheritance diagram for csJoystickDriver:

Public Methods | |
| csJoystickDriver (iObjectRegistry *) | |
| Initialize joystick interface. | |
| virtual | ~csJoystickDriver () |
| Destructor. | |
| virtual void | Reset () |
| Call to release all joystick buttons. | |
| virtual int | GetLastX (int number) |
| Query last joystick X position. | |
| virtual int | GetLastY (int number) |
| Query last joystick Y position. | |
| virtual bool | GetLastButton (int number, int button) |
| Query the last known joystick button state. | |
| virtual void | DoButton (int number, int button, bool down, int x, int y) |
| Call this to add a 'joystick button down/up' event to queue. | |
| virtual void | DoMotion (int number, int x, int y) |
| Call this to add a 'joystick moved' event to queue. | |
| virtual void | LostFocus () |
| Application lost focus. | |
Public Attributes | |
| csJoystickDriver::eiEventHandler | scfiEventHandler |
| iEventHandler implementation | |
Protected Methods | |
| iKeyboardDriver * | GetKeyboardDriver () |
| Get the generic keyboard driver (for checking modifier states). | |
Protected Attributes | |
| bool | Button [CS_MAX_JOYSTICK_COUNT][CS_MAX_JOYSTICK_BUTTONS] |
| Joystick button states. | |
| int | LastX [CS_MAX_JOYSTICK_COUNT] |
| Joystick axis positions. | |
| int | LastY [CS_MAX_JOYSTICK_COUNT] |
| Joystick axis positions. | |
Detailed Description
Generic Joystick driver.
The joystick driver is responsible for tracking current joystick state and also for generating joystick events.
Definition at line 249 of file csinput.h.
Constructor & Destructor Documentation
|
|
Initialize joystick interface.
|
|
|
Destructor.
|
Member Function Documentation
|
||||||||||||||||||||||||
|
Call this to add a 'joystick button down/up' event to queue.
Implements iJoystickDriver. |
|
||||||||||||||||
|
Call this to add a 'joystick moved' event to queue.
Implements iJoystickDriver. |
|
|
Get the generic keyboard driver (for checking modifier states).
|
|
||||||||||||
|
Query the last known joystick button state.
Implements iJoystickDriver. Definition at line 279 of file csinput.h. References CS_MAX_JOYSTICK_BUTTONS, and CS_MAX_JOYSTICK_COUNT. |
|
|
Query last joystick X position.
Implements iJoystickDriver. |
|
|
Query last joystick Y position.
Implements iJoystickDriver. |
|
|
Application lost focus.
Implements csInputDriver. Definition at line 292 of file csinput.h. References iJoystickDriver::Reset(). |
|
|
Call to release all joystick buttons.
Implements iJoystickDriver. |
Member Data Documentation
|
|
Joystick button states.
|
|
|
Joystick axis positions.
|
|
|
Joystick axis positions.
|
|
|
iEventHandler implementation
|
The documentation for this class was generated from the following file:
- csutil/csinput.h
Generated for Crystal Space by doxygen 1.2.18
