浏览代码

Added a note for the SDL_CommonEvent type

Sam Lantinga 2 年之前
父节点
当前提交
6c11449cd4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/SDL3/SDL_events.h

+ 1 - 1
include/SDL3/SDL_events.h

@@ -240,7 +240,7 @@ typedef enum
  */
  */
 typedef struct SDL_CommonEvent
 typedef struct SDL_CommonEvent
 {
 {
-    Uint32 type;
+    Uint32 type;        /**< Event type, shared with all events, Uint32 to cover user events which are not in the SDL_EventType enumeration */
     Uint32 reserved;
     Uint32 reserved;
     Uint64 timestamp;   /**< In nanoseconds, populated using SDL_GetTicksNS() */
     Uint64 timestamp;   /**< In nanoseconds, populated using SDL_GetTicksNS() */
 } SDL_CommonEvent;
 } SDL_CommonEvent;