Loose mouse focus

Hello,
Is there any way to get an event when a window loose mouse focus? Like when the window loose the keyboard focus.
I need it because when the mouse isn’t in the window, I don’t receive any event.

Thanks

Taiki

Have a look at this

http://wiki.libsdl.org/moin.fcg/SDL_WindowEvent

SDL_WINDOWEVENT_ENTER, SDL_WINDOWEVENT_LEAVE most probably are the events
you are looking forOn Mon, Mar 18, 2013 at 7:57 PM, Taiki wrote:

**
Hello,
Is there any way to get an event when a window loose mouse focus? Like
when the window loose the keyboard focus.
I need it because when the mouse isn’t in the window, I don’t receive any
event.

Thanks

Taiki


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Woooa, I totaly forgot those events. Thanks!

Hi,
For some weired reasons, I can’t figure out how to trigger the SDL_WINDOWEVENT_LEAVE: I don’t get anything when the mouse leave the window. Did I misunderstood the API?

Regards

Taiki

This isn’t implemented on Windows yet. Jorgen is working on it now.On Mon, Mar 25, 2013 at 9:40 AM, Taiki wrote:

**
Hi,
For some weired reasons, I can’t figure out how to trigger the
SDL_WINDOWEVENT_LEAVE: I don’t get anything when the mouse leave the
window. Did I misunderstood the API?

Regards

Taiki


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Ok, thanks.
BTW, I’m having a bug with SDL_SetWindowFullscreen (black screen after set it true, then false, then true), should I issue a bug report of is the bug already reported?

Regards