[SDL] getting X11 (or windows) events when SDL_WINDOWID is set

Pierre Phaneuf pphaneuf at gmail.com
Mon May 5 07:03:21 PDT 2008


On Mon, May 5, 2008 at 9:57 AM, Luigi Rizzo <rizzo at iet.unipi.it> wrote:

>  I tried that, both before and after sdl initialization, but
>  it does not seem to be effective. I get only
>  SDLEVENT: 1
>  SDLEVENT: 12
>  but probably these are not really X11 events but are generated
>  by SDL itself...

You could maybe probe a little bit with xev, using the -id option?

>  Note that while i am debugging this with X11, ideally I would
>  like this behaviour to work even on Windows (replacing X11 with
>  the specific window system and events)...

Whew, handing of windows like that is quite platform-specific, I don't
know whether window handles are stable across processes on Windows!?!
Maybe they are, I wouldn't know, just saying that coming up with a
cross-platform abstraction for that stuff might not be trivial. :-)

-- 
http://pphaneuf.livejournal.com/


More information about the SDL mailing list