Changeset 1213 for code/branches/input/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- May 1, 2008, 8:33:53 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/objects/SpaceShip.cc
r1195 r1213 428 428 void SpaceShip::tick(float dt) 429 429 { 430 if (InputManager::getMouse()->getEventCallback() != this) 431 { 432 if (InputManager::getMouse()) 433 { 434 InputManager::getMouse()->setEventCallback(this); 435 this->setMouseEventCallback_ = true; 436 } 430 if (!setMouseEventCallback_) 431 { 432 InputManager::addMouseHandler(this, "SpaceShip"); 433 InputManager::enableMouseHandler("SpaceShip"); 434 setMouseEventCallback_ = true; 437 435 } 438 436 … … 458 456 459 457 OIS::Keyboard* mKeyboard = InputManager::getKeyboard(); 460 //FIXME: variable never used461 //OIS::Mouse* mMouse = InputManager::getSingleton().getMouse();462 458 463 459
Note: See TracChangeset
for help on using the changeset viewer.