torque Torque Game Engine Documentation
TGE Version 1.5.2

UInputManager Class Reference

#include <x86UNIXInputManager.h>

Inheritance diagram for UInputManager:

Inheritance graph
[legend]

Public Member Functions

 UInputManager ()
void init ()
bool enable ()
void disable ()
void activate ()
void deactivate ()
void setWindowLocked (bool locked)
bool isActive ()
void onDeleteNotify (SimObject *object)
 Called when a SimObject is deleted.
bool onAdd ()
 Called when the object is added to the sim.
void onRemove ()
 Called when the object is removed from the sim.
void process ()
bool enableKeyboard ()
void disableKeyboard ()
bool isKeyboardEnabled ()
bool activateKeyboard ()
void deactivateKeyboard ()
bool isKeyboardActive ()
bool enableMouse ()
void disableMouse ()
bool isMouseEnabled ()
bool activateMouse ()
void deactivateMouse ()
bool isMouseActive ()
bool enableJoystick ()
void disableJoystick ()
bool isJoystickEnabled ()
bool activateJoystick ()
void deactivateJoystick ()
bool isJoystickActive ()
void setLocking (bool enabled)
bool getLocking ()
const char * getJoystickAxesString (U32 deviceID)
bool joystickDetected ()

Private Types

typedef SimGroup Parent

Private Member Functions

void initJoystick ()
void resetKeyboardState ()
void resetMouseState ()
void resetInputState ()
void lockInput ()
void unlockInput ()
void joyHatEvent (U8 deviceID, U8 hatNum, U8 prevHatState, U8 currHatState)
void joyButtonEvent (U8 deviceID, U8 buttonNum, bool pressed)
void joyButtonEvent (const SDL_Event &event)
void joyAxisEvent (const SDL_Event &event)
void joyAxisEvent (U8 deviceID, U8 axisNum, S16 axisValue)
void mouseButtonEvent (const SDL_Event &event)
void mouseMotionEvent (const SDL_Event &event)
void keyEvent (const SDL_Event &event)
bool processKeyEvent (InputEvent &event)

Private Attributes

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

Friends

bool JoystickInputDevice::process ()
void JoystickInputDevice::reset ()

Member Typedef Documentation

typedef SimGroup UInputManager::Parent [private]

Reimplemented from SimGroup.


Constructor & Destructor Documentation

UInputManager::UInputManager (  ) 


Member Function Documentation

void UInputManager::init (  ) 

bool UInputManager::enable (  )  [virtual]

Implements InputManager.

void UInputManager::disable (  )  [virtual]

Implements InputManager.

void UInputManager::activate (  ) 

void UInputManager::deactivate (  ) 

void UInputManager::setWindowLocked ( bool  locked  ) 

bool UInputManager::isActive (  )  [inline]

void UInputManager::onDeleteNotify ( SimObject object  )  [virtual]

Called when a SimObject is deleted.

When you are on the notification list for another object and it is deleted, this method is called.

Reimplemented from SimSet.

bool UInputManager::onAdd (  )  [virtual]

Called when the object is added to the sim.

Reimplemented from SimObject.

void UInputManager::onRemove (  )  [virtual]

Called when the object is removed from the sim.

Reimplemented from SimGroup.

void UInputManager::process (  )  [virtual]

Implements InputManager.

bool UInputManager::enableKeyboard (  ) 

void UInputManager::disableKeyboard (  ) 

bool UInputManager::isKeyboardEnabled (  )  [inline]

bool UInputManager::activateKeyboard (  ) 

void UInputManager::deactivateKeyboard (  ) 

bool UInputManager::isKeyboardActive (  )  [inline]

bool UInputManager::enableMouse (  ) 

void UInputManager::disableMouse (  ) 

bool UInputManager::isMouseEnabled (  )  [inline]

bool UInputManager::activateMouse (  ) 

void UInputManager::deactivateMouse (  ) 

bool UInputManager::isMouseActive (  )  [inline]

bool UInputManager::enableJoystick (  ) 

void UInputManager::disableJoystick (  ) 

bool UInputManager::isJoystickEnabled (  )  [inline]

bool UInputManager::activateJoystick (  ) 

void UInputManager::deactivateJoystick (  ) 

bool UInputManager::isJoystickActive (  )  [inline]

void UInputManager::setLocking ( bool  enabled  ) 

bool UInputManager::getLocking (  )  [inline]

const char* UInputManager::getJoystickAxesString ( U32  deviceID  ) 

bool UInputManager::joystickDetected (  )  [inline]

void UInputManager::initJoystick (  )  [private]

void UInputManager::resetKeyboardState (  )  [private]

void UInputManager::resetMouseState (  )  [private]

void UInputManager::resetInputState (  )  [private]

void UInputManager::lockInput (  )  [private]

void UInputManager::unlockInput (  )  [private]

void UInputManager::joyHatEvent ( U8  deviceID,
U8  hatNum,
U8  prevHatState,
U8  currHatState 
) [private]

void UInputManager::joyButtonEvent ( U8  deviceID,
U8  buttonNum,
bool  pressed 
) [private]

void UInputManager::joyButtonEvent ( const SDL_Event &  event  )  [private]

void UInputManager::joyAxisEvent ( const SDL_Event &  event  )  [private]

void UInputManager::joyAxisEvent ( U8  deviceID,
U8  axisNum,
S16  axisValue 
) [private]

void UInputManager::mouseButtonEvent ( const SDL_Event &  event  )  [private]

void UInputManager::mouseMotionEvent ( const SDL_Event &  event  )  [private]

void UInputManager::keyEvent ( const SDL_Event &  event  )  [private]

bool UInputManager::processKeyEvent ( InputEvent event  )  [private]


Friends And Related Function Documentation

bool JoystickInputDevice::process (  )  [friend]

void JoystickInputDevice::reset (  )  [friend]


Field Documentation

bool UInputManager::mActive [private]

bool UInputManager::mKeyboardState[256] [private]

bool UInputManager::mLocking [private]




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