From 1975fc77062eb05c3482723556914803bc400066 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 17 Jul 2015 18:22:57 -0700 Subject: [PATCH] Qt: Fix SDL build --- src/platform/qt/InputProfile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/qt/InputProfile.cpp b/src/platform/qt/InputProfile.cpp index ebf7ac252..1946159e0 100644 --- a/src/platform/qt/InputProfile.cpp +++ b/src/platform/qt/InputProfile.cpp @@ -161,8 +161,10 @@ const InputProfile* InputProfile::findProfile(const QString& name) { void InputProfile::apply(InputController* controller) const { for (size_t i = 0; i < GBA_KEY_MAX; ++i) { +#ifdef BUILD_SDL controller->bindKey(SDL_BINDING_BUTTON, m_keys[i], static_cast(i)); controller->bindAxis(SDL_BINDING_BUTTON, m_axes[i].axis, m_axes[i].direction, static_cast(i)); +#endif } controller->registerTiltAxisX(m_tiltAxis.x); controller->registerTiltAxisY(m_tiltAxis.y);