Changeset 1024 for code/trunk/src/orxonox/objects
- Timestamp:
- Apr 10, 2008, 5:35:49 PM (17 years ago)
- Location:
- code/trunk/src/orxonox/objects
- Files:
-
- 9 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Fighter.cc
r1021 r1024 39 39 #include "core/CoreIncludes.h" 40 40 #include "Orxonox.h" 41 #include " InputHandler.h"41 #include "core/InputManager.h" 42 42 #include "particle/ParticleInterface.h" 43 43 #include "weapon/AmmunitionDump.h" … … 255 255 if (!this->setMouseEventCallback_) 256 256 { 257 if (Input Handler::getSingleton()->getMouse())257 if (InputManager::getSingleton()->getMouse()) 258 258 { 259 Input Handler::getSingleton()->getMouse()->setEventCallback(this);259 InputManager::getSingleton()->getMouse()->setEventCallback(this); 260 260 this->setMouseEventCallback_ = true; 261 261 } … … 264 264 WorldEntity::tick(dt); 265 265 266 OIS::Keyboard* mKeyboard = Input Handler::getSingleton()->getKeyboard();267 OIS::Mouse* mMouse = Input Handler::getSingleton()->getMouse();268 269 mKeyboard->capture();270 mMouse->capture();266 OIS::Keyboard* mKeyboard = InputManager::getSingleton()->getKeyboard(); 267 OIS::Mouse* mMouse = InputManager::getSingleton()->getMouse(); 268 269 //mKeyboard->capture(); 270 //mMouse->capture(); 271 271 272 272 if (leftButtonPressed_) -
code/trunk/src/orxonox/objects/Fighter.h
r871 r1024 7 7 8 8 #include "Model.h" 9 10 class TiXmlElement; // Forward declaration11 9 12 10 namespace orxonox -
code/trunk/src/orxonox/objects/Model.h
r1021 r1024 6 6 #include "WorldEntity.h" 7 7 #include "../tools/Mesh.h" 8 9 class TiXmlElement; // Forward declaration10 8 11 9 namespace orxonox -
code/trunk/src/orxonox/objects/NPC.h
r871 r1024 11 11 12 12 #include "Model.h" 13 14 class TiXmlElement; // Forward declaration15 13 16 14 namespace orxonox { -
code/trunk/src/orxonox/objects/Projectile.h
r871 r1024 10 10 namespace orxonox 11 11 { 12 class SpaceShip; // Forward declaration13 14 12 class _OrxonoxExport Projectile : public WorldEntity 15 13 { -
code/trunk/src/orxonox/objects/Skybox.h
r871 r1024 5 5 6 6 #include "core/BaseObject.h" 7 8 class TiXmlElement; // Forward declaration9 7 10 8 namespace orxonox -
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 -
code/trunk/src/orxonox/objects/SpaceShip.h
r1021 r1024 10 10 #include "../tools/BillboardSet.h" 11 11 12 class TiXmlElement; // Forward declaration13 14 12 namespace orxonox 15 13 { 16 class ParticleInterface; // Forward declaration17 18 14 class _OrxonoxExport SpaceShip : public Model, public OIS::MouseListener 19 15 {
Note: See TracChangeset
for help on using the changeset viewer.