瀏覽代碼

input_common: nitpick about SetHatButton usage

Valeri 4 年之前
父節點
當前提交
3431e0acf5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/input_common/input_engine.cpp

+ 1 - 1
src/input_common/input_engine.cpp

@@ -173,7 +173,7 @@ void InputEngine::ResetButtonState() {
             SetButton(controller.first, button.first, false);
         }
         for (const auto& button : controller.second.hat_buttons) {
-            SetHatButton(controller.first, button.first, false);
+            SetHatButton(controller.first, button.first, 0);
         }
     }
 }