The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Keyboard events not work after SDL_CreateWindowFrom
Rang


Joined: 05 Jun 2015
Posts: 13
Hi,

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?