瀏覽代碼

Fix signedness in GLFWgamepadstate

The signedness did not match glfwGetJoystickButtons.
Camilla Löwy 8 年之前
父節點
當前提交
2d8d8f5917
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/GLFW/glfw3.h

+ 1 - 1
include/GLFW/glfw3.h

@@ -1529,7 +1529,7 @@ typedef struct GLFWgamepadstate
     /*! The states of each [gamepad button](@ref gamepad_buttons), `GLFW_PRESS`
     /*! The states of each [gamepad button](@ref gamepad_buttons), `GLFW_PRESS`
      *  or `GLFW_RELEASE`.
      *  or `GLFW_RELEASE`.
      */
      */
-    char buttons[15];
+    unsigned char buttons[15];
     /*! The states of each [gamepad axis](@ref gamepad_axes), in the range -1.0
     /*! The states of each [gamepad axis](@ref gamepad_axes), in the range -1.0
      *  to 1.0 inclusive.
      *  to 1.0 inclusive.
      */
      */