瀏覽代碼

Use SDL_EventType and fix event name in comment

Susko3 2 年之前
父節點
當前提交
5f763083fc
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      include/SDL3/SDL_events.h

+ 1 - 1
include/SDL3/SDL_events.h

@@ -420,7 +420,7 @@ typedef struct SDL_JoyAxisEvent
  */
  */
 typedef struct SDL_JoyBallEvent
 typedef struct SDL_JoyBallEvent
 {
 {
-    Uint32 type;        /**< ::SDL_JOYBALLMOTION */
+    SDL_EventType type; /**< ::SDL_EVENT_JOYSTICK_BALL_MOTION */
     Uint32 reserved;
     Uint32 reserved;
     Uint64 timestamp;   /**< In nanoseconds, populated using SDL_GetTicksNS() */
     Uint64 timestamp;   /**< In nanoseconds, populated using SDL_GetTicksNS() */
     SDL_JoystickID which; /**< The joystick instance id */
     SDL_JoystickID which; /**< The joystick instance id */