Skip to content

Commit

Permalink
aaaaaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
NarrikSynthfox committed Apr 11, 2024
1 parent b9303ab commit a8a3e96
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Encore/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
}
Expand All @@ -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)];
Expand All @@ -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]];
}
Expand All @@ -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)];
Expand Down

0 comments on commit a8a3e96

Please sign in to comment.