include/SDL_compat.h
changeset 4429 faa9fc8e7f67
parent 4425 a3e71b957215
child 4468 82f357a91d43
     1.1 --- a/include/SDL_compat.h	Wed Mar 10 15:07:20 2010 +0000
     1.2 +++ b/include/SDL_compat.h	Thu Mar 25 01:08:26 2010 -0700
     1.3 @@ -91,12 +91,34 @@
     1.4  #define SDL_LOGPAL 0x01
     1.5  #define SDL_PHYSPAL 0x02
     1.6  
     1.7 -#define SDL_ACTIVEEVENT	SDL_EVENT_RESERVED1
     1.8 -#define SDL_VIDEORESIZE	SDL_EVENT_RESERVED2
     1.9 -#define SDL_VIDEOEXPOSE	SDL_EVENT_RESERVED3
    1.10 -#define SDL_ACTIVEEVENTMASK	SDL_EVENTMASK(SDL_ACTIVEEVENT)
    1.11 -#define SDL_VIDEORESIZEMASK SDL_EVENTMASK(SDL_VIDEORESIZE)
    1.12 -#define SDL_VIDEOEXPOSEMASK SDL_EVENTMASK(SDL_VIDEOEXPOSE)
    1.13 +#define SDL_ACTIVEEVENT	SDL_EVENT_COMPAT1
    1.14 +#define SDL_VIDEORESIZE	SDL_EVENT_COMPAT2
    1.15 +#define SDL_VIDEOEXPOSE	SDL_EVENT_COMPAT3
    1.16 +#define SDL_ACTIVEEVENTMASK	SDL_ACTIVEEVENT, SDL_ACTIVEEVENT
    1.17 +#define SDL_VIDEORESIZEMASK SDL_VIDEORESIZE, SDL_VIDEORESIZE
    1.18 +#define SDL_VIDEOEXPOSEMASK SDL_VIDEOEXPOSE, SDL_VIDEOEXPOSE
    1.19 +#define SDL_WINDOWEVENTMASK SDL_WINDOWEVENT, SDL_WINDOWEVENT
    1.20 +#define SDL_KEYDOWNMASK SDL_KEYDOWN, SDL_KEYDOWN
    1.21 +#define SDL_KEYUPMASK SDL_KEYUP, SDL_KEYUP
    1.22 +#define SDL_KEYEVENTMASK SDL_KEYDOWN, SDL_KEYUP
    1.23 +#define SDL_TEXTEDITINGMASK SDL_TEXTEDITING, SDL_TEXTEDITING
    1.24 +#define SDL_TEXTINPUTMASK SDL_TEXTINPUT, SDL_TEXTINPUT
    1.25 +#define SDL_MOUSEMOTIONMASK SDL_MOUSEMOTION, SDL_MOUSEMOTION
    1.26 +#define SDL_MOUSEBUTTONDOWNMASK SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONDOWN
    1.27 +#define SDL_MOUSEBUTTONUPMASK SDL_MOUSEBUTTONUP, SDL_MOUSEBUTTONUP
    1.28 +#define SDL_MOUSEWHEELMASK SDL_MOUSEWHEEL, SDL_MOUSEWHEEL
    1.29 +#define SDL_MOUSEEVENTMASK SDL_MOUSEMOTION, SDL_MOUSEBUTTONUP
    1.30 +#define SDL_JOYAXISMOTIONMASK SDL_JOYAXISMOTION, SDL_JOYAXISMOTION
    1.31 +#define SDL_JOYBALLMOTIONMASK SDL_JOYBALLMOTION, SDL_JOYBALLMOTION
    1.32 +#define SDL_JOYHATMOTIONMASK SDL_JOYHATMOTION, SDL_JOYHATMOTION
    1.33 +#define SDL_JOYBUTTONDOWNMASK SDL_JOYBUTTONDOWN, SDL_JOYBUTTONDOWN
    1.34 +#define SDL_JOYBUTTONUPMASK SDL_JOYBUTTONUP, SDL_JOYBUTTONUP
    1.35 +#define SDL_JOYEVENTMASK SDL_JOYAXISMOTION, SDL_JOYBUTTONUP
    1.36 +#define SDL_QUITMASK SDL_QUIT, SDL_QUIT
    1.37 +#define SDL_SYSWMEVENTMASK SDL_SYSWMEVENT, SDL_SYSWMEVENT
    1.38 +#define SDL_PROXIMITYINMASK SDL_PROXIMITYIN, SDL_PROXIMITYIN
    1.39 +#define SDL_PROXIMITYOUTMASK SDL_PROXIMITYOUT, SDL_PROXIMITYOUT
    1.40 +#define SDL_ALLEVENTS SDL_FIRSTEVENT, SDL_LASTEVENT
    1.41  
    1.42  #define SDL_BUTTON_WHEELUP	4
    1.43  #define SDL_BUTTON_WHEELDOWN	5