all repos — mgba @ 69ce20fab1a0b4007100ea9ebfd7f61b7851e3fe

mGBA Game Boy Advance Emulator

Fix the MSVC and SDL-less builds.
waddlesplash waddlesplash@gmail.com
Mon, 27 Mar 2017 11:38:10 -0400
commit

69ce20fab1a0b4007100ea9ebfd7f61b7851e3fe

parent

3d22afe0aaf82e87bc27687a01d22210e4c8f75d

M src/platform/qt/InputController.cppsrc/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.hsrc/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.hsrc/platform/qt/InputItem.h

@@ -9,6 +9,8 @@

#include "GamepadAxisEvent.h" #include "GamepadHatEvent.h" +#include <functional> + #include <QAction> #include <mgba/core/core.h>