Changeset 1024 for code/trunk/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Apr 10, 2008, 5:35:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1021 r1024 42 42 #include "core/Debug.h" 43 43 #include "Orxonox.h" 44 #include " InputHandler.h"44 #include "core/InputManager.h" 45 45 #include "particle/ParticleInterface.h" 46 46 #include "Projectile.h" … … 417 417 void SpaceShip::tick(float dt) 418 418 { 419 if (!this->setMouseEventCallback_)420 { 421 if (Input Handler::getSingleton()->getMouse())419 if (InputManager::getSingleton()->getMouse()->getEventCallback() != this) 420 { 421 if (InputManager::getSingleton()->getMouse()) 422 422 { 423 Input Handler::getSingleton()->getMouse()->setEventCallback(this);423 InputManager::getSingleton()->getMouse()->setEventCallback(this); 424 424 this->setMouseEventCallback_ = true; 425 425 } … … 446 446 } 447 447 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(); 453 450 454 451
Note: See TracChangeset
for help on using the changeset viewer.