瀏覽代碼

SDL_GetNumTouchFingers(): 0 is a valid value. negative is automatically an error

Sylvain 3 年之前
父節點
當前提交
32d30944a1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/SDL3/SDL_touch.h

+ 1 - 1
include/SDL3/SDL_touch.h

@@ -115,7 +115,7 @@ extern DECLSPEC SDL_TouchDeviceType SDLCALL SDL_GetTouchDeviceType(SDL_TouchID t
  *
  * \param touchID the ID of a touch device
  * \returns the number of active fingers for a given touch device on success
- *          or 0 on failure; call SDL_GetError() for more information.
+ *          or a negative error code on failure; call SDL_GetError() for more information.
  *
  * \since This function is available since SDL 3.0.0.
  *