Fix the MSVC and SDL-less builds.
waddlesplash waddlesplash@gmail.com
Mon, 27 Mar 2017 11:38:10 -0400
3 files changed,
7 insertions(+),
3 deletions(-)
M
src/platform/qt/InputController.cpp
→
src/platform/qt/InputController.cpp
@@ -730,9 +730,9 @@ mPlatform platform = m_inputMenuIndices.key(index.parent(), PLATFORM_NONE);
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) {
M
src/platform/qt/InputController.h
→
src/platform/qt/InputController.h
@@ -9,6 +9,8 @@
#include "GamepadAxisEvent.h" #include "GamepadHatEvent.h" +#include <memory> + #include <QMap> #include <QObject> #include <QSet>
M
src/platform/qt/InputItem.h
→
src/platform/qt/InputItem.h
@@ -9,6 +9,8 @@
#include "GamepadAxisEvent.h" #include "GamepadHatEvent.h" +#include <functional> + #include <QAction> #include <mgba/core/core.h>