From a8a3e96eafc9e2db1fd20cd545cf1404fdceed95 Mon Sep 17 00:00:00 2001 From: NarrikSynthfox <80410683+NarrikSynthfox@users.noreply.github.com> Date: Thu, 11 Apr 2024 14:05:49 -0400 Subject: [PATCH] aaaaaaaa --- Encore/src/main.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Encore/src/main.cpp b/Encore/src/main.cpp index bde9a8f6..ec1e7427 100644 --- a/Encore/src/main.cpp +++ b/Encore/src/main.cpp @@ -315,8 +315,11 @@ static void gamepadStateCallback(int jid, GLFWgamepadstate state) { if (state.buttons[settings.controller5K[i]] != buttonValues[settings.controller5K[i]]) { if (state.buttons[settings.controller5K[i]] == 1) heldFrets[i] = true; - else + else { heldFrets[i] = false; + overhitFrets[i] = false; + } + handleInputs(i, state.buttons[settings.controller5K[i]]); buttonValues[settings.controller5K[i]] = state.buttons[settings.controller5K[i]]; } @@ -329,6 +332,7 @@ static void gamepadStateCallback(int jid, GLFWgamepadstate state) { } else { heldFrets[i] = false; + overhitFrets[i] = false; handleInputs(i, GLFW_RELEASE); } axesValues[-(settings.controller5K[i] + 1)] = state.axes[-(settings.controller5K[i] + 1)]; @@ -342,8 +346,10 @@ static void gamepadStateCallback(int jid, GLFWgamepadstate state) { if (state.buttons[settings.controller4K[i]] != buttonValues[settings.controller4K[i]]) { if (state.buttons[settings.controller4K[i]] == 1) heldFrets[i] = true; - else + else { heldFrets[i] = false; + overhitFrets[i] = false; + } handleInputs(i, state.buttons[settings.controller4K[i]]); buttonValues[settings.controller4K[i]] = state.buttons[settings.controller4K[i]]; } @@ -356,6 +362,7 @@ static void gamepadStateCallback(int jid, GLFWgamepadstate state) { } else { heldFrets[i] = false; + overhitFrets[i] = false; handleInputs(i, GLFW_RELEASE); } axesValues[-(settings.controller4K[i] + 1)] = state.axes[-(settings.controller4K[i] + 1)];