Changeset 10624 for code/trunk/src/libraries/core/input
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/libraries/core/input/InputManager.cc
r9667 r10624 48 48 #include "core/GraphicsManager.h" 49 49 #include "core/config/ConfigValueIncludes.h" 50 #include "core/co nfig/CommandLineParser.h"51 #include "core/command/ConsoleCommand .h"50 #include "core/commandline/CommandLineIncludes.h" 51 #include "core/command/ConsoleCommandIncludes.h" 52 52 #include "core/command/Functor.h" 53 53 … … 85 85 return (lval = (InputManager::State)(lval & rval)); 86 86 } 87 88 RegisterAbstractClass(InputManager).inheritsFrom<WindowEventListener>(); 87 89 88 90 // ############################################################ -
code/trunk/src/libraries/core/input/JoyStick.cc
r9667 r10624 47 47 48 48 std::vector<std::string> JoyStick::deviceNames_s; 49 50 RegisterAbstractClass(JoyStick).inheritsFrom<Configurable>(); 49 51 50 52 JoyStick::JoyStick(unsigned int id, OIS::InputManager* oisInputManager) -
code/trunk/src/libraries/core/input/JoyStickQuantityListener.cc
r9667 r10624 36 36 std::vector<JoyStick*> JoyStickQuantityListener::joyStickList_s; 37 37 38 RegisterAbstractClass(JoyStickQuantityListener).inheritsFrom<Listable>(); 39 38 40 JoyStickQuantityListener::JoyStickQuantityListener() 39 41 { -
code/trunk/src/libraries/core/input/KeyBinder.cc
r9667 r10624 37 37 #include "core/config/ConfigValueIncludes.h" 38 38 #include "core/config/ConfigFile.h" 39 #include "core/PathConfig.h" 39 #include "core/ApplicationPaths.h" 40 #include "core/ConfigurablePaths.h" 40 41 #include "InputCommands.h" 41 42 #include "JoyStick.h" … … 43 44 namespace orxonox 44 45 { 46 RegisterAbstractClass(KeyBinder).inheritsFrom<JoyStickQuantityListener>(); 47 45 48 /** 46 49 @brief … … 253 256 orxout(internal_info, context::input) << "KeyBinder: Loading key bindings..." << endl; 254 257 255 this->configFile_ = new ConfigFile(this->filename_, ! PathConfig::buildDirectoryRun());258 this->configFile_ = new ConfigFile(this->filename_, !ApplicationPaths::buildDirectoryRun()); 256 259 this->configFile_->load(); 257 260 258 if ( PathConfig::buildDirectoryRun())261 if (ApplicationPaths::buildDirectoryRun()) 259 262 { 260 263 // Dev users should have combined key bindings files 261 std::string defaultFilepath( PathConfig::getDataPathString() + ConfigFile::DEFAULT_CONFIG_FOLDER + '/' + this->filename_);264 std::string defaultFilepath(ConfigurablePaths::getDataPathString() + ConfigFile::DEFAULT_CONFIG_FOLDER + '/' + this->filename_); 262 265 std::ifstream file(defaultFilepath.c_str()); 263 266 if (file.is_open()) … … 287 290 addButtonToCommand(binding, it->second); 288 291 std::string str = binding; 289 if ( PathConfig::buildDirectoryRun() && binding.empty())292 if (ApplicationPaths::buildDirectoryRun() && binding.empty()) 290 293 str = "NoBinding"; 291 294 it->second->setBinding(this->configFile_, this->fallbackConfigFile_, binding, bTemporary); -
code/trunk/src/libraries/core/input/KeyBinderManager.cc
r9667 r10624 31 31 #include "util/Output.h" 32 32 #include "util/Exception.h" 33 #include " util/ScopedSingletonManager.h"33 #include "core/singleton/ScopedSingletonIncludes.h" 34 34 #include "core/config/ConfigValueIncludes.h" 35 35 #include "core/CoreIncludes.h" 36 36 #include "core/LuaState.h" 37 #include "core/command/ConsoleCommand .h"37 #include "core/command/ConsoleCommandIncludes.h" 38 38 #include "InputManager.h" 39 39 #include "KeyDetector.h" … … 41 41 namespace orxonox 42 42 { 43 ManageScopedSingleton(KeyBinderManager, ScopeID::G raphics, false);43 ManageScopedSingleton(KeyBinderManager, ScopeID::GRAPHICS, false); 44 44 45 45 static const std::string __CC_keybind_name = "keybind"; … … 52 52 SetConsoleCommand(__CC_unbind_name, &KeyBinderManager::unbind).defaultValues(""); 53 53 SetConsoleCommand(__CC_tunbind_name, &KeyBinderManager::tunbind).defaultValues(""); 54 55 RegisterAbstractClass(KeyBinderManager).inheritsFrom<Configurable>(); 54 56 55 57 KeyBinderManager::KeyBinderManager() -
code/trunk/src/libraries/core/input/KeyDetector.cc
r7284 r10624 29 29 #include "KeyDetector.h" 30 30 31 #include "util/ScopedSingletonManager.h"32 31 #include "core/CoreIncludes.h" 33 #include "core/command/ConsoleCommand.h" 32 #include "core/singleton/ScopedSingletonIncludes.h" 33 #include "core/command/ConsoleCommandIncludes.h" 34 34 #include "Button.h" 35 35 #include "InputManager.h" … … 38 38 namespace orxonox 39 39 { 40 ManageScopedSingleton(KeyDetector, ScopeID::G raphics, false);40 ManageScopedSingleton(KeyDetector, ScopeID::GRAPHICS, false); 41 41 42 42 static const std::string __CC_KeyDetector_callback_name = "KeyDetectorKeyPressed"; 43 43 DeclareConsoleCommand(__CC_KeyDetector_callback_name, &prototype::void__string).hide(); 44 45 RegisterAbstractClass(KeyDetector).inheritsFrom<KeyBinder>(); 44 46 45 47 KeyDetector::KeyDetector() -
code/trunk/src/libraries/core/input/Mouse.cc
r9667 r10624 31 31 #include <ois/OISMouse.h> 32 32 #include "core/CoreIncludes.h" 33 #include "core/command/ConsoleCommand .h"33 #include "core/command/ConsoleCommandIncludes.h" 34 34 #include "InputState.h" 35 35 … … 50 50 SetConsoleCommand(__CC_Mouse_name, __CC_ungrab_name, &Mouse::ungrab); 51 51 #endif 52 53 RegisterAbstractClass(Mouse).inheritsFrom<WindowEventListener>(); 52 54 53 55 Mouse::Mouse(unsigned int id, OIS::InputManager* oisInputManager)
Note: See TracChangeset
for help on using the changeset viewer.