00001 #ifndef OMK_INP_CAMERAOGRELISTENER_H 00002 #define OMK_INP_CAMERAOGRELISTENER_H 00003 00004 #include "Ogre.h" 00005 #include "OMKInputListener.h" 00006 namespace OMK 00007 { 00008 namespace Vis 00009 { 00010 class OgreVis ; 00011 } 00012 namespace Inp 00013 { 00014 00023 class OMKINPUTS_API CameraOgreListener: 00024 public OMK::Inp::InputListener, 00025 public OIS::KeyListener, 00026 public OIS::MouseListener 00027 { 00028 DECLARE_INPUT_LISTENER_FACTORY( CameraOgreListener ) ; 00029 protected: 00031 virtual bool keyPressed( const OIS::KeyEvent &e ); 00033 virtual bool keyReleased( const OIS::KeyEvent &e ) { return true ; } 00035 virtual bool mouseMoved( const OIS::MouseEvent &e ) ; 00037 virtual bool mousePressed( const OIS::MouseEvent &e, OIS::MouseButtonID id ) { return true ; } 00039 virtual bool mouseReleased( const OIS::MouseEvent &e, OIS::MouseButtonID id ) { return true ; } 00040 00041 void moveCamera(); 00042 00043 protected: 00044 OMK::Vis::OgreVis *_ogreVis ; 00045 Ogre::SceneNode* _cameraNode; 00046 Ogre::Vector3 _translateVector; 00047 float _moveScale; 00048 float _rotScale; 00049 float _rotX; 00050 float _rotY; 00051 float _moveSpeed; 00052 }; 00053 } // namespace Inp 00054 } // namespace OMK 00055 00056 #endif // OMK_INP_CAMERAOGRELISTENER_H
Documentation generated on Mon Jun 9 11:45:55 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |