Changeset 9723 for code/branches/wiimote/src/libraries/core/input
- Timestamp:
- Oct 28, 2013, 4:07:58 PM (11 years ago)
- Location:
- code/branches/wiimote/src/libraries/core/input
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wiimote/src/libraries/core/input/CMakeLists.txt
r9706 r9723 14 14 Mouse.cc 15 15 Wiimote_Test.cc 16 WiiMote.cc 16 17 ) -
code/branches/wiimote/src/libraries/core/input/InputManager.cc
r9667 r9723 58 58 #include "Keyboard.h" 59 59 60 #include "WiiMote.h" 61 60 62 namespace orxonox 61 63 { … … 218 220 // Reorder states in case some joy sticks were added/removed 219 221 this->updateActiveStates(); 220 222 this->loadWiiMote(); 221 223 orxout(verbose, context::input) << "Input devices loaded." << endl; 222 224 } 223 225 void InputManager::loadWiiMote() 226 { 227 try 228 { 229 devices_.push_back(new WiiMote(234)); 230 } 231 catch(std::exception& e) //gotta catch em all 232 { 233 orxout()<<"Exception loading WiiMote!!!1!11!"; 234 } 235 } 224 236 //! Creates a new orxonox::Mouse 225 237 void InputManager::loadMouse() -
code/branches/wiimote/src/libraries/core/input/InputManager.h
r8729 r9723 37 37 #include <boost/function.hpp> 38 38 39 39 40 #include "util/Singleton.h" 40 41 #include "util/tribool.h" 41 42 #include "core/WindowEventListener.h" 43 44 42 45 43 46 // tolua_begin … … 197 200 // Internal methods 198 201 void loadDevices(); 202 void loadWiiMote(); 199 203 void loadMouse(); 200 204 void loadJoySticks();
Note: See TracChangeset
for help on using the changeset viewer.