Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 10, 2008, 5:35:49 PM (16 years ago)
Author:
rgrieder
Message:

merged input back into trunk
note: I have created an asylum with obsolete code, please check the files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/SpaceShip.cc

    r1021 r1024  
    4242#include "core/Debug.h"
    4343#include "Orxonox.h"
    44 #include "InputHandler.h"
     44#include "core/InputManager.h"
    4545#include "particle/ParticleInterface.h"
    4646#include "Projectile.h"
     
    417417    void SpaceShip::tick(float dt)
    418418    {
    419         if (!this->setMouseEventCallback_)
    420         {
    421             if (InputHandler::getSingleton()->getMouse())
     419      if (InputManager::getSingleton()->getMouse()->getEventCallback() != this)
     420        {
     421            if (InputManager::getSingleton()->getMouse())
    422422            {
    423                 InputHandler::getSingleton()->getMouse()->setEventCallback(this);
     423                InputManager::getSingleton()->getMouse()->setEventCallback(this);
    424424                this->setMouseEventCallback_ = true;
    425425            }
     
    446446        }
    447447
    448         OIS::Keyboard* mKeyboard = InputHandler::getSingleton()->getKeyboard();
    449         OIS::Mouse* mMouse = InputHandler::getSingleton()->getMouse();
    450 
    451         mKeyboard->capture();
    452         mMouse->capture();
     448        OIS::Keyboard* mKeyboard = InputManager::getSingleton()->getKeyboard();
     449        OIS::Mouse* mMouse = InputManager::getSingleton()->getMouse();
    453450
    454451
Note: See TracChangeset for help on using the changeset viewer.