InputEventManager
Engine/source/platform/input/event.h
Handles input device plug-ins.
Classes:
Protected Attributes
Public Functions
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)
const char *
Get the next device action code.
Get the next device type code.
const char *
getRegisteredDeviceName(U32 type)
Returns the name of a registered device given its type.
bool
isRegisteredDevice(const char * name)
Check if the given device name is a registered device.
bool
isRegisteredDevice(U32 type)
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.
registerDevice(IInputDevice * device)
unregisterDevice(IInputDevice * device)
Protected Functions
Public Static Functions
const char *
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)