![]() |
Public API Reference |
#include <csinput.h>
Inheritance diagram for csJoystickDriver:
Public Methods | |
csJoystickDriver (iObjectRegistry *) | |
Initialize joystick interface. More... | |
virtual | ~csJoystickDriver () |
Destructor. More... | |
virtual void | Reset () |
Call to release all joystick buttons. More... | |
virtual int | GetLastX (int number) |
Query last joystick X position. More... | |
virtual int | GetLastY (int number) |
Query last joystick Y position. More... | |
virtual bool | GetLastButton (int number, int button) |
Query the last known joystick button state. More... | |
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. More... | |
virtual void | DoMotion (int number, int x, int y) |
Call this to add a 'joystick moved' event to queue. More... | |
virtual void | LostFocus () |
Application lost focus. More... | |
Public Attributes | |
csJoystickDriver::eiEventHandler | scfiEventHandler |
iEventHandler implementation. More... | |
Protected Methods | |
iKeyboardDriver * | GetKeyboardDriver () |
Get the generic keyboard driver (for checking modifier states). More... | |
Protected Attributes | |
bool | Button [CS_MAX_JOYSTICK_COUNT][CS_MAX_JOYSTICK_BUTTONS] |
Joystick button states. More... | |
int | LastX [CS_MAX_JOYSTICK_COUNT] |
Joystick axis positions. More... | |
int | LastY [CS_MAX_JOYSTICK_COUNT] |
Joystick axis positions. More... |
The joystick driver is responsible for tracking current joystick state and also for generating joystick events.
Definition at line 186 of file csutil/csinput.h.
|
Initialize joystick interface.
|
|
Destructor.
|
|
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 215 of file csutil/csinput.h. References Button, CS_MAX_JOYSTICK_BUTTONS, and CS_MAX_JOYSTICK_COUNT. |
|
Query last joystick X position.
Implements iJoystickDriver. Definition at line 211 of file csutil/csinput.h. References LastX. |
|
Query last joystick Y position.
Implements iJoystickDriver. Definition at line 213 of file csutil/csinput.h. References LastY. |
|
Application lost focus.
Implements csInputDriver. Definition at line 228 of file csutil/csinput.h. References Reset. |
|
Call to release all joystick buttons.
Implements iJoystickDriver. Referenced by LostFocus. |
|
Joystick button states.
Definition at line 193 of file csutil/csinput.h. Referenced by GetLastButton. |
|
Joystick axis positions.
Definition at line 195 of file csutil/csinput.h. Referenced by GetLastX. |
|
Joystick axis positions.
Definition at line 195 of file csutil/csinput.h. Referenced by GetLastY. |
|
iEventHandler implementation.
|