Changeset 8470 in orxonox.OLD for branches/network/src
- Timestamp:
- Jun 15, 2006, 3:08:55 PM (18 years ago)
- Location:
- branches/network/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/event/event_handler.cc
r8228 r8470 502 502 503 503 504 int EventHandler::releaseMouse(void* p) 505 { 506 SDL_WM_GrabInput(SDL_GRAB_OFF); 507 SDL_ShowCursor(SDL_DISABLE); 508 return 0; 509 } 510 511 504 512 /** 505 513 * @param state The State to get the Name of. -
branches/network/src/lib/event/event_handler.h
r8148 r8470 56 56 static elState StringToELState(const std::string& stateName); 57 57 58 static int releaseMouse(void* p); 59 58 60 private: 59 61 EventHandler(); -
branches/network/src/orxonox.cc
r8145 r8470 445 445 { 446 446 SignalHandler::getInstance()->doCatch( argv[0], GDB_RUN_IN_FOREGROUND ); 447 SignalHandler::getInstance()->registerCallback(EventHandler::releaseMouse, NULL); 447 448 } 448 449 else if ( Preferences::getInstance()->getString("misc", "bt-to-file", "1") == "1" ) -
branches/network/src/util/signal_handler.h
r8228 r8470 17 17 }; 18 18 19 typedef bool(*SignalCallback)( void * someData );19 typedef int (*SignalCallback)( void * someData ); 20 20 21 21 #ifndef __WIN32__ … … 44 44 public: 45 45 inline static SignalHandler* getInstance() { if (!SignalHandler::singletonRef) SignalHandler::singletonRef = new SignalHandler(); return SignalHandler::singletonRef; } 46 46 47 47 void registerCallback( SignalCallback cb, void * someData ); 48 48 … … 55 55 void catchSignal( int sig ); 56 56 SignalRecList sigRecList; 57 57 58 58 SignalCallbackList callbackList; 59 59
Note: See TracChangeset
for help on using the changeset viewer.