Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 2, 2008, 9:44:33 PM (17 years ago)
Author:
rgrieder
Message:
  • added some empty class files
  • moved input stuff to core
Location:
code/branches/input/src/orxonox
Files:
2 added
3 edited
5 moved

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/orxonox/CMakeLists.txt

    r934 r971  
    11SET( ORXONOX_SRC_FILES
    22  GraphicsEngine.cc
    3   InputEventListener.cc
    4   InputHandler.cc
    53  Main.cc
    64  Orxonox.cc
  • code/branches/input/src/orxonox/OrxonoxPlatform.h

    r969 r971  
    271271
    272272// include visual leak detector to search for memory links
    273 // #include <vld.h>
     273//#include <vld.h>
    274274
    275275#endif /* _OrxonoxPlatform_H__ */
  • code/branches/input/src/orxonox/core/CMakeLists.txt

    r945 r971  
    55  Identifier.cc
    66  IdentifierDistributor.cc
     7  InputHandler.cc
     8  InputManager.cc
    79  MetaObjectList.cc
    810  ConfigValueContainer.cc
  • code/branches/input/src/orxonox/core/InputEvent.h

    r962 r971  
    3434#define _InputEvent_H__
    3535
    36 #include "OrxonoxPrereqs.h"
     36#include "CorePrereqs.h"
    3737
    3838namespace orxonox
  • code/branches/input/src/orxonox/core/InputEventListener.cc

    r962 r971  
    3131 */
    3232
    33 #include "OrxonoxStableHeaders.h"
    34 
    3533#include "core/CoreIncludes.h"
    3634#include "InputEventListener.h"
  • code/branches/input/src/orxonox/core/InputEventListener.h

    r962 r971  
    3434#define _InputEventListener_H__
    3535
    36 #include "OrxonoxPrereqs.h"
     36#include "CorePrereqs.h"
    3737
    3838#include "core/OrxonoxClass.h"
     
    4444    @brief Interface that any class can use to get key independent input.
    4545  */
    46   class _OrxonoxExport InputEventListener : virtual public OrxonoxClass
     46  class _CoreExport InputEventListener : virtual public OrxonoxClass
    4747  {
    4848    friend class InputHandler;
  • code/branches/input/src/orxonox/core/InputHandler.cc

    r969 r971  
    3232 */
    3333
    34 #include "OrxonoxStableHeaders.h"
    35 
    3634#include "core/CoreIncludes.h"
    3735#include "core/Debug.h"
    38 #include "Orxonox.h"
    3936#include "InputEventListener.h"
    4037#include "InputHandler.h"
     
    5350      mouse_(0), keyboard_(0), inputSystem_(0)
    5451  {
    55     //RegisterObject(InputHandler);
    5652  }
    5753
     
    6157  InputHandler::~InputHandler()
    6258  {
     59    this->destroyDevices();
    6360  }
    6461
     
    7269      singletonRef_s = new InputHandler();
    7370    return singletonRef_s;
    74     //static InputHandler theOnlyInstance;
    75     //return &theOnlyInstance;
    7671  }
    7772
     
    10398        // Create inputsystem
    10499        inputSystem_ = OIS::InputManager::createInputSystem(paramList);
    105         //if (getSoftDebugLevel() >= ORX_DEBUG)
    106         //  orxonox::OutputHandler::getOutStream().setOutputLevel(4) << "asdfblah" << std::endl;
    107100        COUT(ORX_DEBUG) << "*** InputHandler: Created OIS input system" << std::endl;
    108101
     
    130123
    131124    COUT(ORX_DEBUG) << "*** InputHandler: Loading key bindings..." << std::endl;
    132     // temporary solution: create event list
    133     //InputEvent[] list = this->createEventList();
    134125    // load the key bindings
    135126    InputEvent empty = {0, false, 0, 0, 0};
  • code/branches/input/src/orxonox/core/InputHandler.h

    r969 r971  
    3737#include <OIS/OIS.h>
    3838
    39 #include "OrxonoxPrereqs.h"
     39#include "CorePrereqs.h"
    4040#include "core/Tickable.h"
    4141#include "InputEvent.h"
     
    4444{
    4545  /**
     46    @brief Designates the way input is handled currently.
     47    IM_GUI:      All the OIS input events are passed to CEGUI
     48    IM_KEYBOARD: Only keyboard input is captured and passed to the InputBuffer
     49    IM_INGAME:   Normal game mode. Key bindings and mouse are active.
     50  */
     51  enum InputMode
     52  {
     53    IM_GUI      = 0;
     54    IM_KEYBOARD = 1;
     55    IM_INGAME   = 2;
     56  };
     57
     58  /**
    4659    @brief Captures and distributes mouse and keyboard input.
    4760    It resolves the key bindings to InputEvents which can be heard by
    4861    implementing the InputEventListener interface.
    4962  */
    50   class _OrxonoxExport InputHandler
     63  class _CoreExport InputHandler
    5164        : public Tickable, public OIS::KeyListener, public OIS::MouseListener
    5265  {
    53     //friend class ClassIdentifier<InputHandler>;
    5466  public:
    5567    bool initialise(size_t windowHnd, int windowWidth, int windowHeight);
Note: See TracChangeset for help on using the changeset viewer.