Changeset 919 for code/branches/network/src/orxonox/InputHandler.h
- Timestamp:
- Mar 24, 2008, 1:12:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/InputHandler.h
r918 r919 39 39 #include <OIS/OISKeyboard.h> 40 40 41 #include <OgrePrerequisites.h>42 43 41 #include "OrxonoxPrereqs.h" 42 //#include "core/OrxonoxClass.h" 44 43 #include "core/Tickable.h" 45 44 46 45 namespace orxonox 47 46 { 48 class _OrxonoxExport InputHandler : public Tickable, public OIS::KeyListener, 49 public OIS::MouseListener 47 class _OrxonoxExport InputHandler 48 : public Tickable, 49 public OIS::KeyListener, public OIS::MouseListener 50 50 { 51 51 public: 52 InputHandler();53 52 54 void initialise( Ogre::RenderWindow *renderWindow);53 void initialise(size_t windowHnd, int windowWidth, int windowHeight); 55 54 void tick(float dt); 56 55 void setWindowExtents(int width, int height); 56 57 OIS::Mouse *getMouse() { return this->mouse_ ; } 58 OIS::Keyboard *getKeyboard() { return this->keyboard_; } 57 59 58 60 // input events … … 63 65 bool keyReleased (const OIS::KeyEvent &arg); 64 66 67 static InputHandler* getSingleton(); 68 69 void setConfigValues(); 70 65 71 private: 72 // don't mess with a Singleton 73 InputHandler (); 74 InputHandler (const InputHandler&) { } 75 ~InputHandler() { } 76 66 77 OIS::InputManager *inputSystem_; 67 78 OIS::Keyboard *keyboard_; 68 79 OIS::Mouse *mouse_; 80 81 // Key bindings 82 int codeFire_; 83 OIS::KeyCode codeMoveForward_; 69 84 70 85 };
Note: See TracChangeset
for help on using the changeset viewer.