Torque3D Documentation / _generateds / InputEventManager

InputEventManager

Engine/source/platform/input/event.h

Handles input device plug-ins.

More...

Classes:

Public Functions

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, AngAxisF & qValue)

Build an input event based on a AngAxisF.

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, F32 fValue)

Build an input event based on a single fValue.

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, Point3F & pValue)

Build an input event based on a Point3F.

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, QuatF & qValue)

Build an input event based on a QuatF.

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, S32 iValue)

Build an input event based on a single iValue.

findVirtualMap(const char * description)

Get the next device action code.

Get the next device type code.

const char *

Returns the name of a registered device given its type.

bool

Check if the given device name is a registered device.

bool

Check if the given device type is a registered device.

bool
isRegisteredDeviceWithAttributes(const char * name, U32 & deviceType, U32 & nameLen)

Same as above but also provides the found device type and actual.

Protected Functions

Public Static Functions

Detailed Description

Handles input device plug-ins.

Protected Attributes

HashTable< U32, VirtualMapData > mActionCodeMap 
Vector< IInputDevice * > mDeviceList 
U32 mNextDeviceCode 
U32 mNextDeviceTypeCode 
SimpleHashTable< VirtualMapData > mVirtualMap 

Public Functions

InputEventManager()

~InputEventManager()

addVirtualMap(const char * description, InputEventType type, InputObjectInstances code)

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, AngAxisF & qValue)

Build an input event based on a AngAxisF.

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, F32 fValue)

Build an input event based on a single fValue.

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, Point3F & pValue)

Build an input event based on a Point3F.

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, QuatF & qValue)

Build an input event based on a QuatF.

buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, S32 iValue)

Build an input event based on a single iValue.

findVirtualMap(const char * description)

findVirtualMapDescFromCode(U32 code)

getNextDeviceCode()

Get the next device action code.

getNextDeviceType()

Get the next device type code.

getRegisteredDeviceName(U32 type)

Returns the name of a registered device given its type.

isRegisteredDevice(const char * name)

Check if the given device name is a registered device.

The given name can optionally include an instance number on the end.

isRegisteredDevice(U32 type)

Check if the given device type is a registered device.

isRegisteredDeviceWithAttributes(const char * name, U32 & deviceType, U32 & nameLen)

Same as above but also provides the found device type and actual.

process()

registerDevice(IInputDevice * device)

start()

stop()

unregisterDevice(IInputDevice * device)

Protected Functions

buildVirtualMap()

Public Static Functions

getSingletonName()