Torque3D Documentation / _generateds / SDLInputManager

SDLInputManager

Engine/source/platformSDL/sdlInputManager.h

More...

Classes:

Private Types

enum
Constants {
  MaxJoysticks = 4
  MaxControllers = 4
  MaxHats = 2
  MaxBalls = 2
  MaxControllerAxes = 7
  MaxControllerButtons = 16
}
Parent 

Private Static Attributes

Private Attributes

HashTable< S32, controllerState * >
controllerState
mControllers [MaxControllers]
HashTable< S32, joystickState * >
joystickState
mJoysticks [MaxJoysticks]

Private Functions

buildHatEvents(U32 deviceType, U32 deviceInst, U8 lastState, U8 currentState, S32 hatIndex)
buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, F32 fValue)
buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, S32 iValue)
closeController(SDL_JoystickID sdlId)
closeJoystick(SDL_JoystickID sdlId)

Public Functions

closeDevice(S32 sdlIndex)
bool
getJoystickTorqueInst(S32 sdlIndex, char * instBuffer)
openController(S32 sdlIndex, S32 requestedTID)
openJoystick(S32 sdlIndex, S32 requestedTID)
processEvent(SDL_Event & evt)

Public Static Functions

Detailed Description

Private Types

Constants

Enumerator

MaxJoysticks = 4
MaxControllers = 4
MaxHats = 2
MaxBalls = 2
MaxControllerAxes = 7
MaxControllerButtons = 16
typedef InputManager Parent 

Private Static Attributes

S32 map_EventForControllerAxis [MaxControllerAxes]
S32 map_EventForControllerButton [MaxControllerButtons]
bool smControllerEnabled 
bool smJoystickEnabled 
bool smJoystickSplitAxesLR 
bool smPOVButtonEvents 
bool smPOVMaskEvents 

Private Attributes

HashTable< S32, controllerState * > mControllerMap 
controllerState mControllers [MaxControllers]
bool mJoystickActive 
HashTable< S32, joystickState * > mJoystickMap 
joystickState mJoysticks [MaxJoysticks]

Private Functions

buildHatEvents(U32 deviceType, U32 deviceInst, U8 lastState, U8 currentState, S32 hatIndex)

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

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

closeController(SDL_JoystickID sdlId)

closeControllerByIndex(S32 index)

closeJoystick(SDL_JoystickID sdlId)

closeJoystickByIndex(S32 index)

deviceConnectedCallback(S32 index)

Public Functions

SDLInputManager()

closeDevice(S32 sdlIndex)

DECLARE_STATIC_CLASS(SDLInputManager )

disable()

Reimplemented from: InputManager

enable()

Reimplemented from: InputManager

getJoystickOpenState(S32 sdlIndex)

getJoystickTorqueInst(S32 sdlIndex, char * instBuffer)

openController(S32 sdlIndex, S32 requestedTID)

openJoystick(S32 sdlIndex, S32 requestedTID)

process()

Reimplemented from: InputManager

processEvent(SDL_Event & evt)

Public Static Functions

init()