From 65cddc852eb9cfde70ca6409c30ca1b87f64dff2 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 25 Jan 2026 19:06:08 +0100 Subject: [PATCH] Reviewed comments --- src/platforms/rcore_desktop_glfw.c | 2 +- src/rcore.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index fd9632700..ffbbc6668 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -1211,7 +1211,7 @@ void PollInputEvents(void) CORE.Input.Keyboard.charPressedQueueCount = 0; // Reset last gamepad button/axis registered state - CORE.Input.Gamepad.lastButtonPressed = 0; // GAMEPAD_BUTTON_UNKNOWN + CORE.Input.Gamepad.lastButtonPressed = GAMEPAD_BUTTON_UNKNOWN; //CORE.Input.Gamepad.axisCount = 0; // Keyboard/Mouse input polling (automatically managed by GLFW3 through callback) diff --git a/src/rcore.c b/src/rcore.c index aabf85022..8d2a9ca0a 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -4013,6 +4013,7 @@ bool IsGamepadButtonUp(int gamepad, int button) } // Get the last gamepad button pressed +// NOTE: Returns last gamepad button down, down->up change not considered int GetGamepadButtonPressed(void) { return CORE.Input.Gamepad.lastButtonPressed;