Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2009, 5:17:05 PM (15 years ago)
Author:
wirthmi
Message:

Made NewHumanController an InputHandler so we can control the crosshair.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/steering/src/orxonox/controllers/NewHumanController.h

    r5979 r5981  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Michael Wirth
    2424 *   Co-authors:
    2525 *      ...
     
    3232#include "OrxonoxPrereqs.h"
    3333
    34 #include "tools/interfaces/Tickable.h"
     34//#include "tools/interfaces/Tickable.h"
    3535#include "HumanController.h"
     36#include "core/input/InputHandler.h"
     37#include "core/input/InputState.h"
    3638
    3739namespace orxonox
    3840{
    39     class _OrxonoxExport NewHumanController : public HumanController
     41    class _OrxonoxExport NewHumanController : public HumanController, public InputHandler
    4042    {
    4143        public:
     
    4547            virtual void tick(float dt);
    4648
     49            void startControl();
     50            void stopControl();
     51
    4752        private:
    4853            static NewHumanController* localController_s;
     54            InputState* gameInputState_;
     55
     56            //mouse handler functions
     57            void mouseMoved    (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize);
    4958    };
    5059}
Note: See TracChangeset for help on using the changeset viewer.