diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp index 5d702698ee8..11a8f6849d6 100644 --- a/backends/events/sdl/sdl-events.cpp +++ b/backends/events/sdl/sdl-events.cpp @@ -318,7 +318,9 @@ Common::KeyCode SdlEventSource::SDLToOSystemKeycode(const SDL_Keycode key) { case SDLK_SYSREQ: return Common::KEYCODE_SYSREQ; case SDLK_MENU: return Common::KEYCODE_MENU; case SDLK_POWER: return Common::KEYCODE_POWER; +#if SDL_VERSION_ATLEAST(1, 2, 3) case SDLK_UNDO: return Common::KEYCODE_UNDO; +#endif #if SDL_VERSION_ATLEAST(2, 0, 0) case SDLK_SCROLLLOCK: return Common::KEYCODE_SCROLLOCK; case SDLK_NUMLOCKCLEAR: return Common::KEYCODE_NUMLOCK;