Elaztek Developer Hub
Blamite Game Engine - blam!  00367.02.08.23.1815.blamite
The core library for the Blamite Game Engine.
CameraController.h
Go to the documentation of this file.
1 
2 #ifndef _Demo_CameraController_H_
3 #define _Demo_CameraController_H_
4 
5 #include "OGRE/OgrePrerequisites.h"
6 #include "TutorialGameState.h"
7 
8 namespace Demo
9 {
11  {
12  bool mUseSceneNode;
13 
14  bool mSpeedMofifier;
15  bool mWASD[4];
16  bool mSlideUpDown[2];
17  float mCameraYaw;
18  float mCameraPitch;
19  public: float mCameraBaseSpeed;
20  public: float mCameraSpeedBoost;
21 
22  private:
23  GraphicsSystem *mGraphicsSystem;
24 
25  public:
26  CameraController( GraphicsSystem *graphicsSystem, bool useSceneNode=false );
27 
28  void update( float timeSinceLast );
29 
31  bool keyPressed( const SDL_KeyboardEvent &arg );
33  bool keyReleased( const SDL_KeyboardEvent &arg );
34 
35  void mouseMoved( const SDL_Event &arg );
36  };
37 }
38 
39 #endif
SDL_KeyboardEvent
Keyboard button event structure (event.key.
Definition: SdlEmulationLayer.h:676
Demo
Definition: BaseSystem.cpp:5
Demo::CameraController::mCameraSpeedBoost
float mCameraSpeedBoost
Definition: CameraController.h:20
Demo::CameraController::CameraController
CameraController(GraphicsSystem *graphicsSystem, bool useSceneNode=false)
Definition: CameraController.cpp:13
Demo::CameraController::keyPressed
bool keyPressed(const SDL_KeyboardEvent &arg)
Returns true if we've handled the event.
Definition: CameraController.cpp:73
Demo::CameraController
Definition: CameraController.h:10
Demo::CameraController::mCameraBaseSpeed
float mCameraBaseSpeed
Definition: CameraController.h:19
timeSinceLast
double timeSinceLast
Definition: ogre.cpp:54
TutorialGameState.h
Demo::GraphicsSystem
Definition: GraphicsSystem.h:26
Demo::CameraController::update
void update(float timeSinceLast)
Definition: CameraController.cpp:26
SDL_Event
Definition: SdlEmulationLayer.h:735
Demo::CameraController::mouseMoved
void mouseMoved(const SDL_Event &arg)
Definition: CameraController.cpp:119
Demo::CameraController::keyReleased
bool keyReleased(const SDL_KeyboardEvent &arg)
Returns true if we've handled the event.
Definition: CameraController.cpp:96