Trouble with F10

I’m having trouble when I press the F10 key. I get the pressed event, but
then my app looses focus with the window’s system menu now active.
I have to press to get focus back into the window. I then get
the release event. All the other function keys work fine. Any
ideas how to make F10 key work like the other function keys?

I’m running the latest cvs version under WinME.

Adam

This is due to the window manager interpreting keyboard input before its
passed onto SDL. Try calling SDL_GrabInput(SDL_GRAB_ON);On Wed, Jan 17, 2001 at 02:55:38PM -0500, aking at dreammechanics.com wrote:

I’m having trouble when I press the F10 key. I get the pressed event, but
then my app looses focus with the window’s system menu now active.
I have to press to get focus back into the window. I then get
the release event. All the other function keys work fine. Any
ideas how to make F10 key work like the other function keys?

I’m running the latest cvs version under WinME.

Adam


Martin

Bother! said Pooh, as he named the Dark One.

This is due to the window manager interpreting keyboard input before its
passed onto SDL. Try calling SDL_GrabInput(SDL_GRAB_ON);

I don’t know if that will work with Windows ME, but it’s worth a shot.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

This is due to the window manager interpreting keyboard input before its
passed onto SDL. Try calling SDL_GrabInput(SDL_GRAB_ON);

Where might this function be found?

Thanks ( :

Hmmm…Sam must be as sleepy as me today… SDL_WM_GrabInput, not
SDL_GrabInput.On Wed, Jan 17, 2001 at 06:32:57PM -0600, Brent Schartung wrote:

This is due to the window manager interpreting keyboard input before its
passed onto SDL. Try calling SDL_GrabInput(SDL_GRAB_ON);

Where might this function be found?

Thanks ( :

Martin

Bother, said Pooh, and then he deleted his source file.