Changeset 3014 for code/branches/netp3/src
- Timestamp:
- May 22, 2009, 9:15:59 AM (16 years ago)
- Location:
- code/branches/netp3/src/core/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp3/src/core/input/InputManager.cc
r3005 r3014 41 41 #include "ois/OISException.h" 42 42 #include "ois/OISInputManager.h" 43 #include "core/ConsoleCommand.h" 43 44 44 45 // HACK … … 52 53 #include "core/ConfigValueIncludes.h" 53 54 #include "core/CommandExecutor.h" 54 #include "core/ConsoleCommand.h"55 55 #include "core/CommandLine.h" 56 56 #include "util/Debug.h" … … 69 69 SetConsoleCommand(InputManager, calibrate, true); 70 70 SetConsoleCommand(InputManager, reload, false); 71 SetConsoleCommand(InputManager, grabMouse, true); 72 SetConsoleCommand(InputManager, ungrabMouse, true); 71 73 SetCommandLineSwitch(keyboard_no_grab); 72 74 … … 1484 1486 void InputManager::grabMouse() 1485 1487 { 1486 OIS::LinuxMouse* linuxMouse = dynamic_cast<OIS::LinuxMouse*>( this->mouse_);1488 OIS::LinuxMouse* linuxMouse = dynamic_cast<OIS::LinuxMouse*>(singletonRef_s->mouse_); 1487 1489 assert(linuxMouse); 1488 1490 linuxMouse->grab(true); … … 1491 1493 void InputManager::ungrabMouse() 1492 1494 { 1493 OIS::LinuxMouse* linuxMouse = dynamic_cast<OIS::LinuxMouse*>( this->mouse_);1495 OIS::LinuxMouse* linuxMouse = dynamic_cast<OIS::LinuxMouse*>(singletonRef_s->mouse_); 1494 1496 assert(linuxMouse); 1495 1497 linuxMouse->grab(false); -
code/branches/netp3/src/core/input/InputManager.h
r3005 r3014 140 140 #ifdef ORXONOX_PLATFORM_LINUX 141 141 // HACK! 142 void grabMouse();143 void ungrabMouse();142 static void grabMouse(); 143 static void ungrabMouse(); 144 144 #endif 145 145
Note: See TracChangeset
for help on using the changeset viewer.