csJoystickEventHelper Class Reference
[Event handling]
Helper class to conveniently deal with joystick events.
More...
#include <csutil/event.h>
Static Public Member Functions | |
static int | GetAxis (const iEvent *event, uint) |
retrieve any axis (basis 0) value | |
static uint | GetButton (const iEvent *event) |
retrieve button number | |
static uint32 | GetButtonMask (const iEvent *event) |
Retrieve current button mask. | |
static bool | GetButtonState (const iEvent *event) |
retrieve button state (pressed/released) | |
static bool | GetEventData (const iEvent *event, csJoystickEventData &data) |
Retrieve event data. | |
static uint32 | GetModifiers (const iEvent *event) |
Retrieve modifiers bitmask. | |
static void | GetModifiers (const iEvent *event, csKeyModifiers &modifiers) |
retrieve modifier flags | |
static uint | GetNumAxes (const iEvent *) |
retrieve number of axes | |
static uint | GetNumber (const iEvent *event) |
Retrieve joystick number (0, 1, 2, ...). | |
static int | GetX (const iEvent *event) |
Retrieve axis 0 value (X). | |
static int | GetY (const iEvent *event) |
Retrieve axis 1 value (Y). | |
static csEvent * | NewEvent (csRef< iEventNameRegistry > ®, csTicks, csEventID name, int n, int x, int y, uint32 axesChanged, uint button, bool buttonState, uint32 buttonMask, uint32 modifiers) |
Create new joystick event. |
Detailed Description
Helper class to conveniently deal with joystick events.
Definition at line 153 of file event.h.
Member Function Documentation
|
retrieve any axis (basis 0) value
|
|
retrieve button number
|
|
Retrieve current button mask.
|
|
retrieve button state (pressed/released)
|
|
Retrieve event data.
|
|
Retrieve modifiers bitmask.
Definition at line 188 of file event.h. References csKeyEventHelper::GetModifiers(), and csKeyEventHelper::GetModifiersBits(). |
|
retrieve modifier flags
Definition at line 185 of file event.h. References csKeyEventHelper::GetModifiers(). |
|
retrieve number of axes
|
|
Retrieve joystick number (0, 1, 2, ...).
|
|
Retrieve axis 0 value (X).
Definition at line 169 of file event.h. References GetAxis(). |
|
Retrieve axis 1 value (Y).
Definition at line 172 of file event.h. References GetAxis(). |
|
Create new joystick event.
|
The documentation for this class was generated from the following file:
- csutil/event.h
Generated for Crystal Space by doxygen 1.4.6