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

Public Member Functions | |
csJoystickDriver (iObjectRegistry *) | |
Initialize joystick interface. | |
virtual void | DoButton (uint number, uint button, bool down, const int32 *axes, uint numAxes) |
Call this to add a 'joystick button down/up' event to queue. | |
virtual void | DoMotion (uint number, const int32 *axes, uint numAxes) |
Call this to add a 'joystick moved' event to queue. | |
virtual void | GainFocus () |
virtual int | GetLast (uint number, uint axis) const |
Query last position on 'axis' of joystick 'number'. | |
virtual const int32 * | GetLast (uint number) const |
Query last position on all axes of joystick 'number'. | |
virtual bool | GetLastButton (uint number, uint button) const |
Query the last known joystick button state. | |
virtual int | GetLastX (uint number) const |
Query last joystick X position. | |
virtual int | GetLastY (uint number) const |
Query last joystick Y position. | |
virtual void | LostFocus () |
Application lost focus. | |
virtual void | Reset () |
Call to release all joystick buttons. | |
virtual | ~csJoystickDriver () |
Destructor. | |
Public Attributes | |
SCF_DECLARE_IBASE | |
csJoystickDriver::eiEventHandler | scfiEventHandler |
iEventHandler implementation | |
Protected Member Functions | |
iKeyboardDriver * | GetKeyboardDriver () |
Get the generic keyboard driver (for checking modifier states). | |
Protected Attributes | |
uint | Axes [CS_MAX_JOYSTICK_COUNT] |
bool | Button [CS_MAX_JOYSTICK_COUNT][CS_MAX_JOYSTICK_BUTTONS] |
Joystick button states. | |
int32 | Last [CS_MAX_JOYSTICK_COUNT][CS_MAX_JOYSTICK_AXES] |
Joystick axis positions. | |
Friends | |
struct | eiEventHandler |
Classes | |
struct | eiEventHandler |
iEventHandler implementation More... |
Detailed Description
Generic Joystick driver.The joystick driver is responsible for tracking current joystick state and also for generating joystick events. Joystick numbers and button numbers are 1-based.
Definition at line 288 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 last position on 'axis' of joystick 'number'.
Implements iJoystickDriver. |
|
Query last position on all axes of joystick 'number'.
Implements iJoystickDriver. |
|
Query the last known joystick button state.
Implements iJoystickDriver. Definition at line 325 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 339 of file csinput.h. References iJoystickDriver::Reset(). |
|
Call to release all joystick buttons.
Implements iJoystickDriver. |
Member Data Documentation
|
Joystick button states.
|
|
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.4.4