From 69ce20fab1a0b4007100ea9ebfd7f61b7851e3fe Mon Sep 17 00:00:00 2001 From: waddlesplash Date: Mon, 27 Mar 2017 11:38:10 -0400 Subject: [PATCH] Fix the MSVC and SDL-less builds. --- src/platform/qt/InputController.cpp | 6 +++--- src/platform/qt/InputController.h | 2 ++ src/platform/qt/InputItem.h | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/platform/qt/InputController.cpp b/src/platform/qt/InputController.cpp index 99a86e093..bc287cec9 100644 --- a/src/platform/qt/InputController.cpp +++ b/src/platform/qt/InputController.cpp @@ -730,9 +730,9 @@ void InputController::bindHat(const QModelIndex& index, int hat, GamepadHatEvent bindHat(platform, SDL_BINDING_BUTTON, hat, direction, coreKey); } #else -void InputController::bindButton(const QModelIndex& index, int key, int) {} -void InputController::bindAxis(const QModelIndex& index, int axis, GamepadAxisEvent::Direction, int) {} -void InputController::bindHat(const QModelIndex& index, int hat, GamepadHatEvent::Direction, int) {} +void InputController::bindButton(const QModelIndex& index, int key) {} +void InputController::bindAxis(const QModelIndex& index, int axis, GamepadAxisEvent::Direction) {} +void InputController::bindHat(const QModelIndex& index, int hat, GamepadHatEvent::Direction) {} #endif bool InputController::eventFilter(QObject*, QEvent* event) { diff --git a/src/platform/qt/InputController.h b/src/platform/qt/InputController.h index bdf7ba2e9..1d65d8ad8 100644 --- a/src/platform/qt/InputController.h +++ b/src/platform/qt/InputController.h @@ -9,6 +9,8 @@ #include "GamepadAxisEvent.h" #include "GamepadHatEvent.h" +#include + #include #include #include diff --git a/src/platform/qt/InputItem.h b/src/platform/qt/InputItem.h index 4b7871d15..d52de02a6 100644 --- a/src/platform/qt/InputItem.h +++ b/src/platform/qt/InputItem.h @@ -9,6 +9,8 @@ #include "GamepadAxisEvent.h" #include "GamepadHatEvent.h" +#include + #include #include