include/SDL_events.h
branchSDL-1.3
changeset 1669 9857d21967bb
parent 1668 4da1ee79c9af
child 1686 8d7fecceb9ef
     1.1 --- a/include/SDL_events.h	Mon May 29 04:04:35 2006 +0000
     1.2 +++ b/include/SDL_events.h	Mon May 29 05:08:33 2006 +0000
     1.3 @@ -269,6 +269,20 @@
     1.4      SDL_SysWMmsg *msg;  /**< driver dependent data, defined in SDL_syswm.h */
     1.5  } SDL_SysWMEvent;
     1.6  
     1.7 +/* Typedefs for backwards compatibility */
     1.8 +typedef struct SDL_ActiveEvent
     1.9 +{
    1.10 +    Uint8 type;
    1.11 +    Uint8 gain;
    1.12 +    Uint8 state;
    1.13 +} SDL_ActiveEvent;
    1.14 +typedef struct SDL_ResizeEvent
    1.15 +{
    1.16 +    Uint8 type;
    1.17 +    int w;
    1.18 +    int h;
    1.19 +} SDL_ResizeEvent;
    1.20 +
    1.21  /**
    1.22   * \union SDL_Event
    1.23   *
    1.24 @@ -288,6 +302,10 @@
    1.25      SDL_QuitEvent quit;             /**< Quit request event data */
    1.26      SDL_UserEvent user;             /**< Custom event data */
    1.27      SDL_SysWMEvent syswm;           /**< System dependent window event data */
    1.28 +
    1.29 +    /* Temporarily here for backwards compatibility */
    1.30 +    SDL_ActiveEvent active;
    1.31 +    SDL_ResizeEvent resize;
    1.32  } SDL_Event;
    1.33  
    1.34