Changeset 971
- Timestamp:
- Apr 2, 2008, 9:44:33 PM (17 years ago)
- Location:
- code/branches/input
- Files:
-
- 2 added
- 4 edited
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/CMakeLists.txt
r934 r971 1 1 SET( ORXONOX_SRC_FILES 2 2 GraphicsEngine.cc 3 InputEventListener.cc4 InputHandler.cc5 3 Main.cc 6 4 Orxonox.cc -
code/branches/input/src/orxonox/OrxonoxPlatform.h
r969 r971 271 271 272 272 // include visual leak detector to search for memory links 273 // 273 //#include <vld.h> 274 274 275 275 #endif /* _OrxonoxPlatform_H__ */ -
code/branches/input/src/orxonox/core/CMakeLists.txt
r945 r971 5 5 Identifier.cc 6 6 IdentifierDistributor.cc 7 InputHandler.cc 8 InputManager.cc 7 9 MetaObjectList.cc 8 10 ConfigValueContainer.cc -
code/branches/input/src/orxonox/core/InputEvent.h
r962 r971 34 34 #define _InputEvent_H__ 35 35 36 #include " OrxonoxPrereqs.h"36 #include "CorePrereqs.h" 37 37 38 38 namespace orxonox -
code/branches/input/src/orxonox/core/InputEventListener.cc
r962 r971 31 31 */ 32 32 33 #include "OrxonoxStableHeaders.h"34 35 33 #include "core/CoreIncludes.h" 36 34 #include "InputEventListener.h" -
code/branches/input/src/orxonox/core/InputEventListener.h
r962 r971 34 34 #define _InputEventListener_H__ 35 35 36 #include " OrxonoxPrereqs.h"36 #include "CorePrereqs.h" 37 37 38 38 #include "core/OrxonoxClass.h" … … 44 44 @brief Interface that any class can use to get key independent input. 45 45 */ 46 class _ OrxonoxExport InputEventListener : virtual public OrxonoxClass46 class _CoreExport InputEventListener : virtual public OrxonoxClass 47 47 { 48 48 friend class InputHandler; -
code/branches/input/src/orxonox/core/InputHandler.cc
r969 r971 32 32 */ 33 33 34 #include "OrxonoxStableHeaders.h"35 36 34 #include "core/CoreIncludes.h" 37 35 #include "core/Debug.h" 38 #include "Orxonox.h"39 36 #include "InputEventListener.h" 40 37 #include "InputHandler.h" … … 53 50 mouse_(0), keyboard_(0), inputSystem_(0) 54 51 { 55 //RegisterObject(InputHandler);56 52 } 57 53 … … 61 57 InputHandler::~InputHandler() 62 58 { 59 this->destroyDevices(); 63 60 } 64 61 … … 72 69 singletonRef_s = new InputHandler(); 73 70 return singletonRef_s; 74 //static InputHandler theOnlyInstance;75 //return &theOnlyInstance;76 71 } 77 72 … … 103 98 // Create inputsystem 104 99 inputSystem_ = OIS::InputManager::createInputSystem(paramList); 105 //if (getSoftDebugLevel() >= ORX_DEBUG)106 // orxonox::OutputHandler::getOutStream().setOutputLevel(4) << "asdfblah" << std::endl;107 100 COUT(ORX_DEBUG) << "*** InputHandler: Created OIS input system" << std::endl; 108 101 … … 130 123 131 124 COUT(ORX_DEBUG) << "*** InputHandler: Loading key bindings..." << std::endl; 132 // temporary solution: create event list133 //InputEvent[] list = this->createEventList();134 125 // load the key bindings 135 126 InputEvent empty = {0, false, 0, 0, 0}; -
code/branches/input/src/orxonox/core/InputHandler.h
r969 r971 37 37 #include <OIS/OIS.h> 38 38 39 #include " OrxonoxPrereqs.h"39 #include "CorePrereqs.h" 40 40 #include "core/Tickable.h" 41 41 #include "InputEvent.h" … … 44 44 { 45 45 /** 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 /** 46 59 @brief Captures and distributes mouse and keyboard input. 47 60 It resolves the key bindings to InputEvents which can be heard by 48 61 implementing the InputEventListener interface. 49 62 */ 50 class _ OrxonoxExport InputHandler63 class _CoreExport InputHandler 51 64 : public Tickable, public OIS::KeyListener, public OIS::MouseListener 52 65 { 53 //friend class ClassIdentifier<InputHandler>;54 66 public: 55 67 bool initialise(size_t windowHnd, int windowWidth, int windowHeight); -
code/branches/input/visual_studio/vc8/core.vcproj
r945 r971 309 309 </File> 310 310 <File 311 RelativePath="..\..\src\orxonox\core\InputEventListener.cc" 312 > 313 </File> 314 <File 315 RelativePath="..\..\src\orxonox\core\InputHandler.cc" 316 > 317 </File> 318 <File 319 RelativePath="..\..\src\orxonox\core\InputHandlerBuffer.cc" 320 > 321 </File> 322 <File 323 RelativePath="..\..\src\orxonox\core\InputHandlerGame.cc" 324 > 325 </File> 326 <File 327 RelativePath="..\..\src\orxonox\core\InputHandlerGUI.cc" 328 > 329 </File> 330 <File 311 331 RelativePath="..\..\src\orxonox\core\Language.cc" 312 332 > … … 407 427 </File> 408 428 <File 429 RelativePath="..\..\src\orxonox\core\InputEvent.h" 430 > 431 </File> 432 <File 433 RelativePath="..\..\src\orxonox\core\InputEventListener.h" 434 > 435 </File> 436 <File 437 RelativePath="..\..\src\orxonox\core\InputHandler.h" 438 > 439 </File> 440 <File 441 RelativePath="..\..\src\orxonox\core\InputHandlerBuffer.h" 442 > 443 </File> 444 <File 445 RelativePath="..\..\src\orxonox\core\InputHandlerGame.h" 446 > 447 </File> 448 <File 449 RelativePath="..\..\src\orxonox\core\InputHandlerGUI.h" 450 > 451 </File> 452 <File 409 453 RelativePath="..\..\src\orxonox\core\Iterator.h" 410 454 >
Note: See TracChangeset
for help on using the changeset viewer.