Просмотр исходного кода

input_common: nitpick about SetHatButton usage

Valeri 4 лет назад
Родитель
Сommit
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);
         }
     }
 }