torque Torque Game Engine Documentation
TGE Version 1.5.2

InputEvent Struct Reference

#include <event.h>

Inheritance diagram for InputEvent:

Inheritance graph
[legend]

Detailed Description

Generic input event.


Public Member Functions

 InputEvent ()

Data Fields

U32 deviceInst
 Device instance: joystick0, joystick1, etc.
float fValue
 Value ranges from -1.0 to 1.0.
U16 deviceType
 One of mouse, keyboard, joystick, unknown.
U16 objType
 One of SI_XAXIS, SI_BUTTON, SI_KEY ...
U16 ascii
 ASCII character code if this is a keyboard event.
U16 objInst
 Which type instance or a KeyCode.
U8 action
 What was the action? (MAKE/BREAK/MOVE).
U8 modifier
 Modifier to action: SI_LSHIFT, SI_LCTRL, etc.


Constructor & Destructor Documentation

InputEvent::InputEvent (  )  [inline]


Field Documentation

Device instance: joystick0, joystick1, etc.

Value ranges from -1.0 to 1.0.

One of mouse, keyboard, joystick, unknown.

One of SI_XAXIS, SI_BUTTON, SI_KEY ...

ASCII character code if this is a keyboard event.

Which type instance or a KeyCode.

What was the action? (MAKE/BREAK/MOVE).

Modifier to action: SI_LSHIFT, SI_LCTRL, etc.




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen