InputHandler Class Reference

#include <InputHandler.h>

List of all members.

Public Member Functions

 InputHandler (Ogre::RenderWindow *_window)
 ~InputHandler ()
void getInput ()
void setWindowSize (int _width, int _height)
bool keyPressed (const OIS::KeyEvent &_event)
bool keyReleased (const OIS::KeyEvent &_event)
bool mouseMoved (const OIS::MouseEvent &_event)
bool mousePressed (const OIS::MouseEvent &_event, OIS::MouseButtonID _button)
bool mouseReleased (const OIS::MouseEvent &_event, OIS::MouseButtonID _button)
inputState getInputState ()
void setInputState (inputState _val)
void destroy (Ogre::RenderWindow *_window)
void forceSelectCraft ()

Protected Attributes

OIS::InputManager * m_ois
OIS::Mouse * m_mouse
OIS::Keyboard * m_keyboard
Ogre::RenderWindow * m_window
inputState m_inputState
Ogre::RaySceneQuery * m_rayOverlayQuery
Ogre::RaySceneQuery * m_rayViewerQuery
Ogre::Any m_preSelected
Ogre::Any m_selected

Detailed Description

Definition at line 15 of file InputHandler.h.


Constructor & Destructor Documentation

InputHandler::InputHandler ( Ogre::RenderWindow *  _window  ) 

Definition at line 7 of file InputHandler.cpp.

InputHandler::~InputHandler (  ) 

Definition at line 51 of file InputHandler.cpp.


Member Function Documentation

void InputHandler::destroy ( Ogre::RenderWindow *  _window  ) 

Definition at line 376 of file InputHandler.cpp.

void InputHandler::forceSelectCraft (  ) 

Definition at line 397 of file InputHandler.cpp.

void InputHandler::getInput (  ) 

Definition at line 60 of file InputHandler.cpp.

inputState InputHandler::getInputState (  ) 

Definition at line 387 of file InputHandler.cpp.

bool InputHandler::keyPressed ( const OIS::KeyEvent &  _event  ) 

Definition at line 122 of file InputHandler.cpp.

bool InputHandler::keyReleased ( const OIS::KeyEvent &  _event  ) 

Definition at line 130 of file InputHandler.cpp.

bool InputHandler::mouseMoved ( const OIS::MouseEvent &  _event  ) 

Definition at line 150 of file InputHandler.cpp.

bool InputHandler::mousePressed ( const OIS::MouseEvent &  _event,
OIS::MouseButtonID  _button 
)

Definition at line 206 of file InputHandler.cpp.

bool InputHandler::mouseReleased ( const OIS::MouseEvent &  _event,
OIS::MouseButtonID  _button 
)

Definition at line 290 of file InputHandler.cpp.

void InputHandler::setInputState ( inputState  _val  ) 

Definition at line 392 of file InputHandler.cpp.

void InputHandler::setWindowSize ( int  _width,
int  _height 
)

Definition at line 116 of file InputHandler.cpp.


Member Data Documentation

Definition at line 44 of file InputHandler.h.

OIS::Keyboard* InputHandler::m_keyboard [protected]

Definition at line 41 of file InputHandler.h.

OIS::Mouse* InputHandler::m_mouse [protected]

Definition at line 40 of file InputHandler.h.

OIS::InputManager* InputHandler::m_ois [protected]

Definition at line 39 of file InputHandler.h.

Ogre::Any InputHandler::m_preSelected [protected]

Definition at line 49 of file InputHandler.h.

Ogre::RaySceneQuery* InputHandler::m_rayOverlayQuery [protected]

Definition at line 46 of file InputHandler.h.

Ogre::RaySceneQuery* InputHandler::m_rayViewerQuery [protected]

Definition at line 47 of file InputHandler.h.

Ogre::Any InputHandler::m_selected [protected]

Definition at line 50 of file InputHandler.h.

Ogre::RenderWindow* InputHandler::m_window [protected]

Definition at line 42 of file InputHandler.h.


The documentation for this class was generated from the following files:
Generated on Fri Aug 20 08:28:49 2010 for VecTRacer by  doxygen 1.6.3