The joystick event callbacks.
More...
#include <ceJoystick.h>
List of all members.
Detailed Description
The joystick event callbacks.
- Note:
- To recieve the joystick state, derive a class from this, and implement the methods here. Then set the callback to your joystick instance with IJoystickDevice::SetJoystickEvent().
- See also:
- IJoystickDevice
Member Function Documentation
virtual void OnJoyButtonPressed |
( |
const IJoystickDevice * |
Owner, |
|
|
const int |
joyid, |
|
|
const unsigned int |
button, |
|
|
const SJoystickState & |
State | |
|
) |
| | [pure virtual] |
This callback is called when a button is pressed.
- Parameters:
-
| Owner | The joystick manager owner. |
| joyid | The joystick id. |
| button | The button was pressed. |
| State | The joystick state. |
- See also:
- OnJoyButtonReleased, OnJoystickEvent
virtual void OnJoyButtonReleased |
( |
const IJoystickDevice * |
Owner, |
|
|
const int |
joyid, |
|
|
const unsigned int |
button, |
|
|
const SJoystickState & |
State | |
|
) |
| | [pure virtual] |
This callback is called when a button is released.
- Parameters:
-
| Owner | The joystick manager owner. |
| joyid | The joystick id. |
| button | The button was pressed. |
| State | The joystick state. |
- See also:
- OnJoyButtonPressed, OnJoystickEvent
This callback is always called while is keep pressed any button or axis.
- Parameters:
-
| Owner | The joystick manager owner. |
| joyid | The joystick id. |
| State | The joystick state. |
- See also:
- OnJoyButtonPressed, OnJoyButtonReleased
The documentation for this class was generated from the following file: