From 2d8d8f5917ec669a76272338eec5ed8801fd9138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 17 Jul 2017 21:18:15 +0200 Subject: [PATCH] Fix signedness in GLFWgamepadstate The signedness did not match glfwGetJoystickButtons. --- include/GLFW/glfw3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 04b79ca4..820004e0 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -1529,7 +1529,7 @@ typedef struct GLFWgamepadstate /*! The states of each [gamepad button](@ref gamepad_buttons), `GLFW_PRESS` * or `GLFW_RELEASE`. */ - char buttons[15]; + unsigned char buttons[15]; /*! The states of each [gamepad axis](@ref gamepad_axes), in the range -1.0 * to 1.0 inclusive. */