X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fflexui%2Fsdlstandalone.pas;h=145f5c79534d287d33f6ecaeeda8106fae03a9c8;hb=e33d969e9c2e1b73d2a5ea2e9a3181b21d096687;hp=11f52108333395c3dc19a2279b67b93add82dda3;hpb=26290d9816334b8377531cf8b3e58643444f4d04;p=d2df-sdl.git diff --git a/src/flexui/sdlstandalone.pas b/src/flexui/sdlstandalone.pas index 11f5210..145f5c7 100644 --- a/src/flexui/sdlstandalone.pas +++ b/src/flexui/sdlstandalone.pas @@ -1,4 +1,4 @@ -(* Copyright (C) DooM 2D:Forever Developers +(* Copyright (C) Doom 2D: Forever Developers * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -70,6 +70,7 @@ begin //SDL_Quit(); result := true; fuiWinActive := fuiWinActive; + SDL_StartTextInput(); end; @@ -108,9 +109,10 @@ begin FillChar(ev, sizeof(ev), 0); while (SDL_PollEvent(@ev) > 0) do begin - if fuiOnSDLEvent(ev) then result := true; + fuiOnSDLEvent(ev); //if (ev.type_ = SDL_QUITEV) then exit; end; + if fuiQuitReceived then result := true; end;