all repos — mgba @ 1975fc77062eb05c3482723556914803bc400066

mGBA Game Boy Advance Emulator

Qt: Fix SDL build
Jeffrey Pfau jeffrey@endrift.com
Fri, 17 Jul 2015 18:22:57 -0700
commit

1975fc77062eb05c3482723556914803bc400066

parent

3a53e279276ec09df09e78d0dd4b39f749a8bd0d

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/InputProfile.cppsrc/platform/qt/InputProfile.cpp

@@ -161,8 +161,10 @@ }

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<GBAKey>(i)); controller->bindAxis(SDL_BINDING_BUTTON, m_axes[i].axis, m_axes[i].direction, static_cast<GBAKey>(i)); +#endif } controller->registerTiltAxisX(m_tiltAxis.x); controller->registerTiltAxisY(m_tiltAxis.y);