UInputManager

Engine/source/platformX86UNIX/x86UNIXInputManager.h

More...

Private Types

Parent 

Public Functions

bool
bool
const char *
bool
bool
bool

Called when the object is added to the sim.

Called when a SimObject is deleted.

Called when the object is removed from the sim.

setLocking(bool enabled)
setWindowLocked(bool locked)

Private Functions

joyAxisEvent(const SDL_Event & event)
joyAxisEvent(U8 deviceID, U8 axisNum, S16 axisValue)
joyButtonEvent(const SDL_Event & event)
joyButtonEvent(U8 deviceID, U8 buttonNum, bool pressed)
joyHatEvent(U8 deviceID, U8 hatNum, U8 prevHatState, U8 currHatState)
keyEvent(const SDL_Event & event)
mouseButtonEvent(const SDL_Event & event)
mouseMotionEvent(const SDL_Event & event)

Detailed Description

Private Types

typedef SimGroup Parent 

Private Attributes

bool mActive 
bool mJoystickActive 
bool mJoystickEnabled 
Vector< JoystickInputDevice * > mJoystickList 
bool mKeyboardActive 
bool mKeyboardEnabled 
bool mKeyboardState [256]
S32 mLastMouseX 
S32 mLastMouseY 
bool mLocking 
S32 mModifierKeys 
bool mMouseActive 
bool mMouseButtonState [3]
bool mMouseEnabled 

Public Friends

Public Functions

UInputManager()

activate()

activateJoystick()

activateKeyboard()

activateMouse()

deactivate()

deactivateJoystick()

deactivateKeyboard()

deactivateMouse()

disable()

Reimplemented from: InputManager

disableJoystick()

disableKeyboard()

disableMouse()

enable()

Reimplemented from: InputManager

enableJoystick()

enableKeyboard()

enableMouse()

getJoystickAxesString(U32 deviceID)

getLocking()

init()

isActive()

isJoystickActive()

isJoystickEnabled()

isKeyboardActive()

isKeyboardEnabled()

isMouseActive()

isMouseEnabled()

joystickDetected()

onAdd()

Reimplemented from: SimObject

onDeleteNotify(SimObject * object)

Reimplemented from: SimSet

onRemove()

Reimplemented from: SimGroup

process()

Reimplemented from: InputManager

setLocking(bool enabled)

setWindowLocked(bool locked)

Private Functions

initJoystick()

joyAxisEvent(const SDL_Event & event)

joyAxisEvent(U8 deviceID, U8 axisNum, S16 axisValue)

joyButtonEvent(const SDL_Event & event)

joyButtonEvent(U8 deviceID, U8 buttonNum, bool pressed)

joyHatEvent(U8 deviceID, U8 hatNum, U8 prevHatState, U8 currHatState)

keyEvent(const SDL_Event & event)

lockInput()

mouseButtonEvent(const SDL_Event & event)

mouseMotionEvent(const SDL_Event & event)

processKeyEvent(InputEventInfo & event)

resetInputState()

resetKeyboardState()

resetMouseState()

unlockInput()