OMKDistributedCameraOgreListener.h

Go to the documentation of this file.
00001 #ifndef OMK_INP_DISTRIBUTEDCAMERAOGRELISTENER_H
00002 #define OMK_INP_DISTRIBUTEDCAMERAOGRELISTENER_H
00003 
00004 #include "Ogre.h"
00005 #include "OMKTransform.h"
00006 #include "OMKInputListener.h"
00007 namespace OMK
00008 {
00009 namespace Vis
00010 {
00011         class OgreVis ;
00012 }
00013 namespace Inp
00014 {
00015 
00025 class OMKINPUTS_API DistributedCameraOgreListener:  
00026         public OMK::Inp::InputListener,
00027         public OIS::KeyListener,
00028         public OIS::MouseListener
00029 {
00030   DECLARE_INPUT_LISTENER_FACTORY( DistributedCameraOgreListener ) ;
00031 protected:
00033         virtual bool keyPressed( const OIS::KeyEvent &e );
00035         virtual bool keyReleased( const OIS::KeyEvent &e ) { return true ; }
00037         virtual bool mouseMoved( const OIS::MouseEvent &e ) ;
00039         virtual bool mousePressed( const OIS::MouseEvent &e, OIS::MouseButtonID id ) { return true ; }
00041         virtual bool mouseReleased( const OIS::MouseEvent &e, OIS::MouseButtonID id ) { return true ; }
00042 
00043         virtual void postComputeParameters();
00044 
00045 
00046 protected:
00047   Vis::OgreVis* _ogreVis ;
00048   Type::Transform _transform ;
00049   bool _updateTransform ;
00050   float _translationSpeed ;
00051   float _wheelTranslationSpeed ;
00052   float _rotationSpeed ;
00053 
00054 };
00055 } // namespace Inp
00056 } // namespace OMK
00057 
00058 #endif // OMK_INP_DISTRIBUTEDCAMERAOGRELISTENER_H

logo OpenMask

Documentation generated on Mon Jun 9 11:45:56 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007