|
Torque2D Reference
|
Generic input event. More...
#include <event.h>
Inheritance diagram for InputEvent:Public Member Functions | |
| InputEvent () | |
Public Member Functions inherited from Event | |
| Event () | |
Public Attributes | |
| U32 | deviceInst |
| Device instance: joystick0, joystick1, etc. More... | |
| float | fValue |
| Value ranges from -1.0 to 1.0. More... | |
| U16 | deviceType |
| One of mouse, keyboard, joystick, unknown. More... | |
| U16 | objType |
| One of SI_XAXIS, SI_BUTTON, SI_KEY ... More... | |
| U16 | ascii |
| ASCII character code if this is a keyboard event. More... | |
| U16 | objInst |
| Which type instance or a KeyCode. More... | |
| U8 | action |
| What was the action? (MAKE/BREAK/MOVE) More... | |
| U8 | modifier |
| Modifier to action: SI_LSHIFT, SI_LCTRL, etc. More... | |
| char | touchesX [256] |
| Collection of x-coordinates for touches. More... | |
| char | touchesY [256] |
| Collection of y-coordinates for touches. More... | |
| char | touchIDs [256] |
| Collection of touch IDs. More... | |
Public Attributes inherited from Event | |
| U16 | type |
| U16 | size |
Generic input event.
|
inline |
| U8 action |
What was the action? (MAKE/BREAK/MOVE)
| U16 ascii |
ASCII character code if this is a keyboard event.
| U32 deviceInst |
Device instance: joystick0, joystick1, etc.
| U16 deviceType |
One of mouse, keyboard, joystick, unknown.
| float fValue |
Value ranges from -1.0 to 1.0.
| U8 modifier |
Modifier to action: SI_LSHIFT, SI_LCTRL, etc.
| U16 objInst |
Which type instance or a KeyCode.
| U16 objType |
One of SI_XAXIS, SI_BUTTON, SI_KEY ...
| char touchesX[256] |
Collection of x-coordinates for touches.
| char touchesY[256] |
Collection of y-coordinates for touches.
| char touchIDs[256] |
Collection of touch IDs.
1.8.3.1