Skip to content

Commit

Permalink
Merge pull request #1644 from alextwomey/main
Browse files Browse the repository at this point in the history
Analog toggle quality of life changes
  • Loading branch information
nicolasnoble committed Apr 27, 2024
2 parents c7606ae + 3aef7f8 commit 6ab75e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/pad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ void PadsImpl::reset() {
}

void PadsImpl::Pad::reset() {
m_analogMode = false;
//m_analogMode = false;
m_configMode = false;
m_cmd = magic_enum::enum_integer(PadCommands::Idle);
m_bufferLen = 0;
Expand Down Expand Up @@ -882,7 +882,7 @@ bool PadsImpl::configure(PCSX::GUI* gui) {
if (pad.m_type == PadType::Analog && pad.m_settings.get<Keyboard_AnalogMode>() != GLFW_KEY_UNKNOWN) {
const int key = pad.m_settings.get<Keyboard_AnalogMode>();

if ((key != ImGuiKey_None) && ImGui::IsKeyDown(GlfwKeyToImGuiKey(key))) {
if ((key != ImGuiKey_None) && ImGui::IsKeyReleased(GlfwKeyToImGuiKey(key))) {
pad.m_analogMode = !pad.m_analogMode;
}
}
Expand Down

0 comments on commit 6ab75e6

Please sign in to comment.