Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8470 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 15, 2006, 3:08:55 PM (18 years ago)
Author:
bensch
Message:

orxonox/network: signal

Location:
branches/network/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/event/event_handler.cc

    r8228 r8470  
    502502
    503503
     504int EventHandler::releaseMouse(void* p)
     505{
     506  SDL_WM_GrabInput(SDL_GRAB_OFF);
     507  SDL_ShowCursor(SDL_DISABLE);
     508  return 0;
     509}
     510
     511
    504512/**
    505513 * @param state The State to get the Name of.
  • branches/network/src/lib/event/event_handler.h

    r8148 r8470  
    5656  static elState StringToELState(const std::string& stateName);
    5757
     58  static int releaseMouse(void* p);
     59
    5860private:
    5961  EventHandler();
  • branches/network/src/orxonox.cc

    r8145 r8470  
    445445  {
    446446    SignalHandler::getInstance()->doCatch( argv[0], GDB_RUN_IN_FOREGROUND );
     447    SignalHandler::getInstance()->registerCallback(EventHandler::releaseMouse, NULL);
    447448  }
    448449  else if ( Preferences::getInstance()->getString("misc", "bt-to-file", "1") == "1" )
  • branches/network/src/util/signal_handler.h

    r8228 r8470  
    1717};
    1818
    19 typedef bool (*SignalCallback)( void * someData );
     19typedef int (*SignalCallback)( void * someData );
    2020
    2121#ifndef __WIN32__
     
    4444  public:
    4545    inline static SignalHandler* getInstance() { if (!SignalHandler::singletonRef) SignalHandler::singletonRef = new SignalHandler(); return SignalHandler::singletonRef; }
    46      
     46
    4747    void registerCallback( SignalCallback cb, void * someData );
    4848
     
    5555    void catchSignal( int sig );
    5656    SignalRecList sigRecList;
    57    
     57
    5858    SignalCallbackList callbackList;
    5959
Note: See TracChangeset for help on using the changeset viewer.