Fix the MSVC and SDL-less builds.

This commit is contained in:
waddlesplash 2017-03-27 11:38:10 -04:00 committed by Vicki Pfau
parent 3d22afe0aa
commit 69ce20fab1
3 changed files with 7 additions and 3 deletions

View File

@ -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) {

View File

@ -9,6 +9,8 @@
#include "GamepadAxisEvent.h"
#include "GamepadHatEvent.h"
#include <memory>
#include <QMap>
#include <QObject>
#include <QSet>

View File

@ -9,6 +9,8 @@
#include "GamepadAxisEvent.h"
#include "GamepadHatEvent.h"
#include <functional>
#include <QAction>
#include <mgba/core/core.h>