Skip to content

Commit 3aef7f8

Browse files
committed
feat: changes to pad re analog toggle
1 parent a1c3c7e commit 3aef7f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/pad.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ void PadsImpl::reset() {
482482
}
483483

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

885-
if ((key != ImGuiKey_None) && ImGui::IsKeyDown(GlfwKeyToImGuiKey(key))) {
885+
if ((key != ImGuiKey_None) && ImGui::IsKeyReleased(GlfwKeyToImGuiKey(key))) {
886886
pad.m_analogMode = !pad.m_analogMode;
887887
}
888888
}

0 commit comments

Comments
 (0)