From a678665c49d1e4f2e7d6304c78ae7873ea217551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 24 Jan 2018 21:18:38 +0100 Subject: [PATCH] Cleanup --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index d70b4a60..f6fb38fd 100644 --- a/src/input.c +++ b/src/input.c @@ -1190,7 +1190,7 @@ GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state) { if (js->mapping->buttons[i].type == _GLFW_JOYSTICK_AXIS) { - if (fabs(js->axes[js->mapping->buttons[i].value]) > 0.5) + if (fabsf(js->axes[js->mapping->buttons[i].value]) > 0.5f) state->buttons[i] = GLFW_PRESS; } else if (js->mapping->buttons[i].type == _GLFW_JOYSTICK_HATBIT)