From a8e5921841c613eeb74e6ce68c53bf679b0c1af0 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sun, 28 Feb 2010 17:33:42 +0000 Subject: [PATCH] Correct virtual keyboard events --- Src/gui/gui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Src/gui/gui.cpp b/Src/gui/gui.cpp index 47c4e33..024735f 100644 --- a/Src/gui/gui.cpp +++ b/Src/gui/gui.cpp @@ -376,6 +376,12 @@ void Gui::pushEvent(event_t ev) void Gui::pushEvent(SDL_Event *ev) { + if (this->kbd) + { + this->kbd->pushEvent(ev); + return; + } + switch(ev->type) { case SDL_KEYDOWN: