[SDL] Keyboard events not work after SDL_CreateWindowFrom

Rang dimitro at inbox.lv
Wed Sep 14 13:38:02 PDT 2016


When creating window by SDL_CreateWindow - all ok, events from keyboard are exist.

When creating window by SDL_CreateWindowFrom - keyboard events are not added to queue. And with SDL_PollEvent loop i can't handle them.
All other events work fine.

SDL_GetKeyboardFocus return 'null'.

Program written on Delphi, have main Form (TForm) and Panel object (TPanel) on them. SDL window is created on Panel (with Panel.Handle = hwnd).

Has anyone experienced this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20160914/03080caa/attachment.htm>

More information about the SDL mailing list