include/SDL_events.h
changeset 6091 61fa4f3238c5
parent 6053 4d7b69e575f9
child 6114 d166819bf2b3
equal deleted inserted replaced
6090:687400b595ab 6091:61fa4f3238c5
   102     SDL_DOLLARGESTURE   = 0x800,
   102     SDL_DOLLARGESTURE   = 0x800,
   103     SDL_DOLLARRECORD,
   103     SDL_DOLLARRECORD,
   104     SDL_MULTIGESTURE,
   104     SDL_MULTIGESTURE,
   105 
   105 
   106     /* Clipboard events */
   106     /* Clipboard events */
   107 
       
   108     SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */
   107     SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */
       
   108 
       
   109     /* Drag and drop events */
       
   110     SDL_DROPFILE        = 0x1000, /**< The system requests a file open */
   109 
   111 
   110     /* Obsolete events */
   112     /* Obsolete events */
   111     SDL_EVENT_COMPAT1 = 0x7000, /**< SDL 1.2 events for compatibility */
   113     SDL_EVENT_COMPAT1 = 0x7000, /**< SDL 1.2 events for compatibility */
   112     SDL_EVENT_COMPAT2,
   114     SDL_EVENT_COMPAT2,
   113     SDL_EVENT_COMPAT3,
   115     SDL_EVENT_COMPAT3,
   348   */
   350   */
   349 } SDL_DollarGestureEvent;
   351 } SDL_DollarGestureEvent;
   350 
   352 
   351 
   353 
   352 /**
   354 /**
       
   355  *  \brief An event used to request a file open by the system (event.drop.*)
       
   356  *         This event is disabled by default, you can enable it with SDL_EventState()
       
   357  *  \note If you enable this event, you must free the filename in the event.
       
   358  */
       
   359 typedef struct SDL_DropEvent
       
   360 {
       
   361     Uint32 type;        /**< ::SDL_DROPFILE */
       
   362     char *file;         /**< The file name, which should be freed with SDL_free() */
       
   363 } SDL_DropEvent;
       
   364 
       
   365 
       
   366 /**
   353  *  \brief The "quit requested" event
   367  *  \brief The "quit requested" event
   354  */
   368  */
   355 typedef struct SDL_QuitEvent
   369 typedef struct SDL_QuitEvent
   356 {
   370 {
   357     Uint32 type;        /**< ::SDL_QUIT */
   371     Uint32 type;        /**< ::SDL_QUIT */
   374 struct SDL_SysWMmsg;
   388 struct SDL_SysWMmsg;
   375 typedef struct SDL_SysWMmsg SDL_SysWMmsg;
   389 typedef struct SDL_SysWMmsg SDL_SysWMmsg;
   376 
   390 
   377 /**
   391 /**
   378  *  \brief A video driver dependent system event (event.syswm.*)
   392  *  \brief A video driver dependent system event (event.syswm.*)
   379  *  
   393  *         This event is disabled by default, you can enable it with SDL_EventState()
       
   394  *
   380  *  \note If you want to use this event, you should include SDL_syswm.h.
   395  *  \note If you want to use this event, you should include SDL_syswm.h.
   381  */
   396  */
   382 typedef struct SDL_SysWMEvent
   397 typedef struct SDL_SysWMEvent
   383 {
   398 {
   384     Uint32 type;        /**< ::SDL_SYSWMEVENT */
   399     Uint32 type;        /**< ::SDL_SYSWMEVENT */
   435     SDL_SysWMEvent syswm;           /**< System dependent window event data */
   450     SDL_SysWMEvent syswm;           /**< System dependent window event data */
   436     SDL_TouchFingerEvent tfinger;   /**< Touch finger event data */
   451     SDL_TouchFingerEvent tfinger;   /**< Touch finger event data */
   437     SDL_TouchButtonEvent tbutton;   /**< Touch button event data */
   452     SDL_TouchButtonEvent tbutton;   /**< Touch button event data */
   438     SDL_MultiGestureEvent mgesture; /**< Multi Finger Gesture data */
   453     SDL_MultiGestureEvent mgesture; /**< Multi Finger Gesture data */
   439     SDL_DollarGestureEvent dgesture; /**< Multi Finger Gesture data */
   454     SDL_DollarGestureEvent dgesture; /**< Multi Finger Gesture data */
       
   455     SDL_DropEvent drop;             /**< Drag and drop event data */
   440 
   456 
   441     /** Temporarily here for backwards compatibility */
   457     /** Temporarily here for backwards compatibility */
   442     /*@{*/
   458     /*@{*/
   443 #ifndef SDL_NO_COMPAT
   459 #ifndef SDL_NO_COMPAT
   444     SDL_ActiveEvent active;
   460     SDL_ActiveEvent active;