include/SDL_events.h
changeset 7190 11612d544fcd
parent 7188 20bd120bf7e4
child 7191 75360622e65f
equal deleted inserted replaced
7189:414be1d64060 7190:11612d544fcd
    59     SDL_FIRSTEVENT     = 0,     /**< Unused (do not remove) */
    59     SDL_FIRSTEVENT     = 0,     /**< Unused (do not remove) */
    60 
    60 
    61     /* Application events */
    61     /* Application events */
    62     SDL_QUIT           = 0x100, /**< User-requested quit */
    62     SDL_QUIT           = 0x100, /**< User-requested quit */
    63 
    63 
       
    64     /* These application events have special meaning on iOS, see README.iOS for details */
       
    65 	SDL_APP_TERMINATING,        /**< The application is being terminated by the OS
       
    66                                      Called on iOS in applicationWillTerminate()
       
    67                                      Called on Android in onDestroy()
       
    68                                 */
       
    69 	SDL_APP_LOWMEMORY,          /**< The application is low on memory, free memory if possible.
       
    70                                      Called on iOS in applicationDidReceiveMemoryWarning()
       
    71                                      Called on Android in onLowMemory()
       
    72                                 */
       
    73 	SDL_APP_WILLENTERBACKGROUND, /**< The application is about to enter the background
       
    74                                      Called on iOS in applicationWillResignActive()
       
    75                                      Called on Android in onPause()
       
    76                                 */
       
    77 	SDL_APP_DIDENTERBACKGROUND, /**< The application did enter the background and may not get CPU for some time
       
    78                                      Called on iOS in applicationDidEnterBackground()
       
    79                                      Called on Android in onPause()
       
    80                                 */
       
    81 	SDL_APP_WILLENTERFOREGROUND, /**< The application is about to enter the foreground
       
    82                                      Called on iOS in applicationWillEnterForeground()
       
    83                                      Called on Android in onResume()
       
    84                                 */
       
    85 	SDL_APP_DIDENTERFOREGROUND, /**< The application is now interactive
       
    86                                      Called on iOS in applicationDidBecomeActive()
       
    87                                      Called on Android in onResume()
       
    88                                 */
       
    89 
    64     /* Window events */
    90     /* Window events */
    65     SDL_WINDOWEVENT    = 0x200, /**< Window state change */
    91     SDL_WINDOWEVENT    = 0x200, /**< Window state change */
    66     SDL_SYSWMEVENT,             /**< System specific event */
    92     SDL_SYSWMEVENT,             /**< System specific event */
    67 
    93 
    68     /* Keyboard events */
    94     /* Keyboard events */
   107     /* Clipboard events */
   133     /* Clipboard events */
   108     SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */
   134     SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */
   109 
   135 
   110     /* Drag and drop events */
   136     /* Drag and drop events */
   111     SDL_DROPFILE        = 0x1000, /**< The system requests a file open */
   137     SDL_DROPFILE        = 0x1000, /**< The system requests a file open */
   112 
   138 	
   113     /** Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,
   139     /** Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,
   114      *  and should be allocated with SDL_RegisterEvents()
   140      *  and should be allocated with SDL_RegisterEvents()
   115      */
   141      */
   116     SDL_USEREVENT    = 0x8000,
   142     SDL_USEREVENT    = 0x8000,
   117 
   143 
   425 {
   451 {
   426     Uint32 type;        /**< ::SDL_QUIT */
   452     Uint32 type;        /**< ::SDL_QUIT */
   427     Uint32 timestamp;
   453     Uint32 timestamp;
   428 } SDL_QuitEvent;
   454 } SDL_QuitEvent;
   429 
   455 
       
   456 /**
       
   457  *  \brief OS Specific event
       
   458  */
       
   459 typedef struct SDL_OSEvent
       
   460 {
       
   461     Uint32 type;        /**< ::SDL_QUIT */
       
   462     Uint32 timestamp;
       
   463 } SDL_OSEvent;
   430 
   464 
   431 /**
   465 /**
   432  *  \brief A user-defined event type (event.user.*)
   466  *  \brief A user-defined event type (event.user.*)
   433  */
   467  */
   434 typedef struct SDL_UserEvent
   468 typedef struct SDL_UserEvent