Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 24, 2008, 1:12:31 PM (17 years ago)
Author:
rgrieder
Message:
  • AudioManager is now Tickable
  • NPC update moved to its tick-function
  • corrected CMakeLists
  • added a few window properties to GraphicsEngine
  • OrxListener has been completely replaced
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/InputHandler.h

    r918 r919  
    3939#include <OIS/OISKeyboard.h>
    4040
    41 #include <OgrePrerequisites.h>
    42 
    4341#include "OrxonoxPrereqs.h"
     42//#include "core/OrxonoxClass.h"
    4443#include "core/Tickable.h"
    4544
    4645namespace orxonox
    4746{
    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
    5050  {
    5151  public:
    52     InputHandler();
    5352
    54     void initialise(Ogre::RenderWindow *renderWindow);
     53    void initialise(size_t windowHnd, int windowWidth, int windowHeight);
    5554    void tick(float dt);
    5655    void setWindowExtents(int width, int height);
     56
     57    OIS::Mouse    *getMouse()    { return this->mouse_   ; }
     58    OIS::Keyboard *getKeyboard() { return this->keyboard_; }
    5759
    5860    // input events
     
    6365                bool keyReleased  (const OIS::KeyEvent   &arg);
    6466
     67    static InputHandler* getSingleton();
     68
     69    void setConfigValues();
     70
    6571  private:
     72    // don't mess with a Singleton
     73    InputHandler ();
     74    InputHandler (const InputHandler&) { }
     75    ~InputHandler() { }
     76
    6677    OIS::InputManager *inputSystem_;
    6778    OIS::Keyboard     *keyboard_;
    6879    OIS::Mouse        *mouse_;
     80
     81    // Key bindings
     82    int codeFire_;
     83    OIS::KeyCode codeMoveForward_;
    6984
    7085  };
Note: See TracChangeset for help on using the changeset viewer.