Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Location:
code/trunk/src/orxonox/objects
Files:
9 deleted
8 edited

Legend:

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

    r1021 r1024  
    3939#include "core/CoreIncludes.h"
    4040#include "Orxonox.h"
    41 #include "InputHandler.h"
     41#include "core/InputManager.h"
    4242#include "particle/ParticleInterface.h"
    4343#include "weapon/AmmunitionDump.h"
     
    255255        if (!this->setMouseEventCallback_)
    256256        {
    257             if (InputHandler::getSingleton()->getMouse())
     257            if (InputManager::getSingleton()->getMouse())
    258258            {
    259                 InputHandler::getSingleton()->getMouse()->setEventCallback(this);
     259                InputManager::getSingleton()->getMouse()->setEventCallback(this);
    260260                this->setMouseEventCallback_ = true;
    261261            }
     
    264264        WorldEntity::tick(dt);
    265265
    266         OIS::Keyboard* mKeyboard = InputHandler::getSingleton()->getKeyboard();
    267         OIS::Mouse* mMouse = InputHandler::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();
    271271
    272272        if (leftButtonPressed_)
  • code/trunk/src/orxonox/objects/Fighter.h

    r871 r1024  
    77
    88#include "Model.h"
    9 
    10 class TiXmlElement; // Forward declaration
    119
    1210namespace orxonox
  • code/trunk/src/orxonox/objects/Model.h

    r1021 r1024  
    66#include "WorldEntity.h"
    77#include "../tools/Mesh.h"
    8 
    9 class TiXmlElement; // Forward declaration
    108
    119namespace orxonox
  • code/trunk/src/orxonox/objects/NPC.h

    r871 r1024  
    1111
    1212#include "Model.h"
    13 
    14 class TiXmlElement; // Forward declaration
    1513
    1614namespace orxonox {
  • code/trunk/src/orxonox/objects/Projectile.h

    r871 r1024  
    1010namespace orxonox
    1111{
    12     class SpaceShip; // Forward declaration
    13 
    1412    class _OrxonoxExport Projectile : public WorldEntity
    1513    {
  • code/trunk/src/orxonox/objects/Skybox.h

    r871 r1024  
    55
    66#include "core/BaseObject.h"
    7 
    8 class TiXmlElement; // Forward declaration
    97
    108namespace orxonox
  • 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
  • code/trunk/src/orxonox/objects/SpaceShip.h

    r1021 r1024  
    1010#include "../tools/BillboardSet.h"
    1111
    12 class TiXmlElement;          // Forward declaration
    13 
    1412namespace orxonox
    1513{
    16     class ParticleInterface; // Forward declaration
    17 
    1814    class _OrxonoxExport SpaceShip : public Model, public OIS::MouseListener
    1915    {
Note: See TracChangeset for help on using the changeset viewer.