se_ogre::InputManager Class Reference

#include <InputManager.hpp>

List of all members.

Public Types

enum  ShiftKeys {
  LSHIFT, RSHIFT, LCTRL, RCTRL,
  ALT, ALT_GR, WIN, MODIFIER_COUNT
}

Public Member Functions

 InputManager ()
 ~InputManager ()
InputHandleractive ()
InputHandlerbelow ()
void setModifier (ShiftKeys key, bool state)

Protected Member Functions

void add (InputHandler *h)
void remove (InputHandler *h)
void push (const char *name)
void pop ()
InputHandlerhandler (const char *name)
void push (InputHandler *h)
bool hasHandler (const char *name)
int count ()
InputHandlerhandler (int index)
bool isShiftDown () const
bool isAltDown () const
bool isControlDown () const
bool isWinDown () const

Protected Attributes

int handlerCount_
int handlerStackPos_
InputHandlerhandlerStack_ [MAX_STACK_SIZE]
InputHandlerhandlers_ [MAX_HANDLER_COUNT]
bool isModifierDown_ [MODIFIER_COUNT]

Static Protected Attributes

const int MAX_STACK_SIZE = 64
const int MAX_HANDLER_COUNT = 32

Friends

class InputHandler


Member Enumeration Documentation

enum se_ogre::InputManager::ShiftKeys
 

Enumeration values:
LSHIFT 
RSHIFT 
LCTRL 
RCTRL 
ALT 
ALT_GR 
WIN 
MODIFIER_COUNT 

Definition at line 36 of file InputManager.hpp.


Constructor & Destructor Documentation

se_ogre::InputManager::InputManager  ) 
 

Definition at line 29 of file InputManager.cpp.

se_ogre::InputManager::~InputManager  ) 
 

Definition at line 36 of file InputManager.cpp.


Member Function Documentation

InputHandler * se_ogre::InputManager::active  ) 
 

Definition at line 41 of file InputManager.cpp.

Referenced by se_ogre::O3dInputBridge::axisMoved(), se_ogre::O3dInputBridge::buttonPressed(), se_ogre::O3dInputBridge::buttonReleased(), se_ogre::InputHandler::hasFocus(), se_ogre::O3dInputBridge::keyPressed(), se_ogre::O3dInputBridge::keyReleased(), se_ogre::O3dInputBridge::mouseMoved(), se_ogre::O3dInputBridge::mousePressed(), se_ogre::O3dInputBridge::mouseReleased(), se_ogre::O3dManager::moveCamera(), se_ogre::O3dInputBridge::povMoved(), se_ogre::O3dInputBridge::sliderMoved(), and se_ogre::O3dInputBridge::step().

void se_ogre::InputManager::add InputHandler h  )  [protected]
 

Definition at line 93 of file InputManager.cpp.

References Assert, and se_ogre::InputHandler::name().

Referenced by se_ogre::InputHandler::InputHandler().

InputHandler * se_ogre::InputManager::below  ) 
 

Definition at line 51 of file InputManager.cpp.

Referenced by se_ogre::InputHandler::below().

int se_ogre::InputManager::count  )  [inline, protected]
 

Definition at line 51 of file InputManager.hpp.

InputHandler* se_ogre::InputManager::handler int  index  )  [inline, protected]
 

Definition at line 52 of file InputManager.hpp.

InputHandler * se_ogre::InputManager::handler const char *  name  )  [protected]
 

Definition at line 112 of file InputManager.cpp.

bool se_ogre::InputManager::hasHandler const char *  name  )  [protected]
 

Definition at line 123 of file InputManager.cpp.

bool se_ogre::InputManager::isAltDown  )  const [inline, protected]
 

Definition at line 55 of file InputManager.hpp.

Referenced by se_ogre::InputHandler::isAltDown().

bool se_ogre::InputManager::isControlDown  )  const [inline, protected]
 

Definition at line 56 of file InputManager.hpp.

Referenced by se_ogre::InputHandler::isControlDown().

bool se_ogre::InputManager::isShiftDown  )  const [inline, protected]
 

Definition at line 54 of file InputManager.hpp.

Referenced by se_ogre::InputHandler::isShiftDown().

bool se_ogre::InputManager::isWinDown  )  const [inline, protected]
 

Definition at line 57 of file InputManager.hpp.

Referenced by se_ogre::InputHandler::isWinDown().

void se_ogre::InputManager::pop  )  [protected]
 

Definition at line 81 of file InputManager.cpp.

References Assert, se_ogre::InputHandler::grabbedFocusEvent(), LogWarning, and se_ogre::InputHandler::lostFocusEvent().

Referenced by se_ogre::InputHandler::loseFocus().

void se_ogre::InputManager::push InputHandler h  )  [protected]
 

Definition at line 60 of file InputManager.cpp.

References Assert, se_ogre::InputHandler::grabbedFocusEvent(), LogWarning, and se_ogre::InputHandler::name().

void se_ogre::InputManager::push const char *  name  )  [protected]
 

Definition at line 73 of file InputManager.cpp.

References Assert.

Referenced by se_ogre::InputHandler::grabFocus().

void se_ogre::InputManager::remove InputHandler h  )  [protected]
 

Definition at line 101 of file InputManager.cpp.

Referenced by se_ogre::InputHandler::~InputHandler().

void se_ogre::InputManager::setModifier ShiftKeys  key,
bool  state
[inline]
 

Definition at line 37 of file InputManager.hpp.

Referenced by se_ogre::O3dInputBridge::keyPressed(), and se_ogre::O3dInputBridge::keyReleased().


Friends And Related Function Documentation

friend class InputHandler [friend]
 

Definition at line 41 of file InputManager.hpp.


Member Data Documentation

int se_ogre::InputManager::handlerCount_ [protected]
 

Definition at line 61 of file InputManager.hpp.

InputHandler* se_ogre::InputManager::handlers_[MAX_HANDLER_COUNT] [protected]
 

Definition at line 64 of file InputManager.hpp.

InputHandler* se_ogre::InputManager::handlerStack_[MAX_STACK_SIZE] [protected]
 

Definition at line 63 of file InputManager.hpp.

int se_ogre::InputManager::handlerStackPos_ [protected]
 

Definition at line 62 of file InputManager.hpp.

bool se_ogre::InputManager::isModifierDown_[MODIFIER_COUNT] [protected]
 

Definition at line 65 of file InputManager.hpp.

const int se_ogre::InputManager::MAX_HANDLER_COUNT = 32 [static, protected]
 

Definition at line 60 of file InputManager.hpp.

const int se_ogre::InputManager::MAX_STACK_SIZE = 64 [static, protected]
 

Definition at line 59 of file InputManager.hpp.


The documentation for this class was generated from the following files:

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:32 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo