Changeset 1219 for code/trunk/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- May 2, 2008, 10:44:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1209 r1219 32 32 #include <string> 33 33 34 #include <OIS/OIS.h>35 34 #include <OgreCamera.h> 36 35 #include <OgreRenderWindow.h> … … 39 38 40 39 #include "tinyxml/tinyxml.h" 40 #include "ois/OIS.h" 41 41 #include "util/Convert.h" 42 42 #include "util/Math.h" … … 428 428 void SpaceShip::tick(float dt) 429 429 { 430 if (InputManager::getSingleton().getMouse()->getEventCallback() != this) 431 { 432 if (InputManager::getSingleton().getMouse()) 433 { 434 InputManager::getSingleton().getMouse()->setEventCallback(this); 435 this->setMouseEventCallback_ = true; 436 } 430 if (!setMouseEventCallback_) 431 { 432 InputManager::addMouseHandler(this, "SpaceShip"); 433 setMouseEventCallback_ = true; 437 434 } 438 435 … … 457 454 } 458 455 459 OIS::Keyboard* mKeyboard = InputManager::getSingleton().getKeyboard(); 460 //FIXME: variable never used 461 //OIS::Mouse* mMouse = InputManager::getSingleton().getMouse(); 456 OIS::Keyboard* mKeyboard = InputManager::getKeyboard(); 462 457 463 458
Note: See TracChangeset
for help on using the changeset viewer.