瀏覽代碼

Added documentation for the game controller axis values

Sam Lantinga 9 年之前
父節點
當前提交
8000e6d9e1
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      include/SDL_gamecontroller.h

+ 6 - 0
include/SDL_gamecontroller.h

@@ -247,6 +247,12 @@ extern DECLSPEC void SDLCALL SDL_GameControllerUpdate(void);
 
 /**
  *  The list of axes available from a controller
+ *
+ *  Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX,
+ *  and are centered within ~8000 of zero, though advanced UI will allow users to set
+ *  or autodetect the dead zone, which varies between controllers.
+ *
+ *  Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
  */
 typedef enum
 {