Changeset 4782 in orxonox.OLD for orxonox/trunk/src/lib/event
- Timestamp:
- Jul 3, 2005, 12:26:16 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/event
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/event/event.h
r4457 r4782 1 /*! 1 /*! 2 2 \file event.h 3 3 \brief an abstract event … … 25 25 int type; //!< the type field 26 26 bool bPressed; //!< is true, if the button/mouse was pressed, false if released 27 27 28 28 Uint16 x; //!< x coordinate 29 29 Uint16 y; //!< y coordinate 30 30 Sint16 xRel; //!< relative x movement to last point 31 31 Sint16 yRel; //!< relative y movement to last point 32 33 SDL_ResizeEvent resize; 32 34 }; 33 35 -
orxonox/trunk/src/lib/event/event_def.h
r4780 r4782 30 30 EV_JOY_BUTTON, 31 31 32 EV_VIDEO_RESIZE = SDL_VIDEORESIZE, 33 32 34 EV_UNKNOWN, 33 35 34 36 EV_NUMBER, 35 36 EV_VIDEO_RESIZE = SDL_VIDEORESIZE37 37 }; 38 38 … … 47 47 ES_ALL, //!< you want to register events for all states 48 48 49 ES_NUMBER, //!< the number of states49 ES_NUMBER, //!< the number of states 50 50 }; 51 51 -
orxonox/trunk/src/lib/event/event_handler.cc
r4780 r4782 252 252 ev.type = EV_JOY_BUTTON; 253 253 break; 254 case SDL_VIDEORESIZE: 255 ev.resize = event.resize; 256 break; 254 257 default: 255 258 ev.type = EV_UNKNOWN;
Note: See TracChangeset
for help on using the changeset viewer.