Qt: Fix SDL build
Jeffrey Pfau jeffrey@endrift.com
Fri, 17 Jul 2015 18:22:57 -0700
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/InputProfile.cpp
→
src/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);