From ac686e3942bd3ba02b233b31286db2cae4661ba3 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 4 Jan 2015 22:35:41 -0800 Subject: [PATCH] Qt: Clear axis direction when setting a button value (fixes #179) --- src/platform/qt/KeyEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/qt/KeyEditor.cpp b/src/platform/qt/KeyEditor.cpp index 94a9d6499..48fb427da 100644 --- a/src/platform/qt/KeyEditor.cpp +++ b/src/platform/qt/KeyEditor.cpp @@ -35,6 +35,7 @@ void KeyEditor::setValueKey(int key) { void KeyEditor::setValueButton(int button) { m_button = true; + m_direction = InputController::NEUTRAL; setValue(button); }