SDL window lost focus on Pocket PC

Hi,

I’m using SDL library on Pocket PC (Acer n30, Arm). I have created a window
(240x320 fullscreen) and I have drawn to it. Everything has worked. But, when
I have connected e.g. USB to RS485 converter to the USB host port (firsttime)
the Pocket PC has opened the dialog box and asked for the driver name. This
dialog box was under my SDL window. My problem is, that this dialog box got
the focus and my SDL window lost it and I’m not able to got the focus back. I
have seen the SDL window, but I can’t e.g. push the button on it.

I there any posibility, to catch any “focusing” event or to focus the SDL window.

I have tryed SDL_ACTIVEEVENT but I didn’t catch the event.

Thanks

Tom

I there any posibility, to catch any “focusing” event or to focus the SDL window.

I have tryed SDL_ACTIVEEVENT but I didn’t catch the event.

That’s weird, because I have the opposite problem.
The SDL version of the NeHe tutorials uses active events
to turn drawing on and off – trying to avoid wasting CPU
when the window is iconised.

In fact this doesn’t work as the comments indicate,
it turns off drawing whenever the mouse is not over
the window!

So this is definitely trapping active event on Linux.

[Heh … but don’t be too fast to switch over to
the popup … one of the most common ways for high levels
to die in Diablo was to be PK’d by Outlook Express :]On Tue, 2006-03-07 at 07:33 +0100, sdl wrote:


John Skaller
Async PL, Realtime software consultants
Checkout Felix: http://felix.sourceforge.net