Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4782 in orxonox.OLD for orxonox/trunk/src/lib/event


Ignore:
Timestamp:
Jul 3, 2005, 12:26:16 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: orxonox-events registered, solved an error in ClassList

Location:
orxonox/trunk/src/lib/event
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/event/event.h

    r4457 r4782  
    1 /*! 
     1/*!
    22    \file event.h
    33    \brief an abstract event
     
    2525  int      type;                        //!< the type field
    2626  bool     bPressed;                    //!< is true, if the button/mouse was pressed, false if released
    27        
     27
    2828  Uint16   x;                           //!< x coordinate
    2929  Uint16   y;                           //!< y coordinate
    3030  Sint16   xRel;                        //!< relative x movement to last point
    3131  Sint16   yRel;                        //!< relative y movement to last point
     32
     33  SDL_ResizeEvent resize;
    3234};
    3335
  • orxonox/trunk/src/lib/event/event_def.h

    r4780 r4782  
    3030  EV_JOY_BUTTON,
    3131
     32  EV_VIDEO_RESIZE                 = SDL_VIDEORESIZE,
     33
    3234  EV_UNKNOWN,
    3335
    3436  EV_NUMBER,
    35 
    36   EV_VIDEO_RESIZE                 = SDL_VIDEORESIZE
    3737};
    3838
     
    4747    ES_ALL,            //!< you want to register events for all states
    4848
    49     ES_NUMBER,         //!< the number of states
     49    ES_NUMBER,          //!< the number of states
    5050  };
    5151
  • orxonox/trunk/src/lib/event/event_handler.cc

    r4780 r4782  
    252252          ev.type = EV_JOY_BUTTON;
    253253          break;
     254        case SDL_VIDEORESIZE:
     255          ev.resize = event.resize;
     256          break;
    254257        default:
    255258          ev.type = EV_UNKNOWN;
Note: See TracChangeset for help on using the changeset viewer.