From d168ec33c553d1e331d1397d068fccdb70a594aa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Aug 2013 19:38:28 +0300 Subject: fix compilation errors with SDL1.2 --- src/gui/gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 8068ffad7..9441677a6 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -376,8 +376,10 @@ bool Gui::handleKeyInput2() keyInput.getType(), keyInput.isNumericPad(), keyInput.getActionId(), keyInput.getKey()); +#ifdef USE_SDL2 if (!keyInput.getText().empty()) keyEventToGlobalKeyListeners.setText(keyInput.getText()); +#endif distributeKeyEventToGlobalKeyListeners( keyEventToGlobalKeyListeners); @@ -401,8 +403,10 @@ bool Gui::handleKeyInput2() mShiftPressed, mControlPressed, mAltPressed, mMetaPressed, keyInput.getType(), keyInput.isNumericPad(), keyInput.getActionId(), keyInput.getKey()); +#ifdef USE_SDL2 if (!keyInput.getText().empty()) keyEvent.setText(keyInput.getText()); +#endif if (!mFocusHandler->getFocused()->isFocusable()) mFocusHandler->focusNone(); -- cgit v1.2.3-70-g09d2