Preventing Windows key from exiting fullscreen in SDL?

Someone reported that pressing the ‘Windows’ key in Tux Paint while
in fullscreen mode caused it to exit fullscreen.

Eep! :frowning:

Is there a way to prevent this!?!?

Thanks,–
-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/

I hope not, I often use the windows key in such a way, especially in
applications that don’t have a button to minimise in fullscreen mode
(or if I can’t find said button). In addition, it is one of the common
techniques used to break out of a fullscreen application that isn’t
responding (along with CTRL-ALT-DEL). The trick isn’t to disable it,
it is to restore the application properly when the user starts to use
it again. I think that is the best solution.On Sun, Mar 2, 2008 at 7:31 AM, Bill Kendrick wrote:

Someone reported that pressing the ‘Windows’ key in Tux Paint while
in fullscreen mode caused it to exit fullscreen.

Eep! :frowning:

Is there a way to prevent this!?!?

This is an application for kids as young as 3 years old
(although honestly, I let my 15 month old play with it).

Being able to keep it really locked down is pretty important,
so I’d like the option to disable the Windows key!
(Obviously, not every SDL app would want or need to do this!)

-bill!On Sun, Mar 02, 2008 at 02:44:01PM +0000, Brian wrote:

I hope not, I often use the windows key in such a way, especially in
applications that don’t have a button to minimise in fullscreen mode
(or if I can’t find said button). In addition, it is one of the common
techniques used to break out of a fullscreen application that isn’t
responding (along with CTRL-ALT-DEL). The trick isn’t to disable it,
it is to restore the application properly when the user starts to use
it again. I think that is the best solution.

Bill Kendrick wrote:

Someone reported that pressing the ‘Windows’ key in Tux Paint while
in fullscreen mode caused it to exit fullscreen.

Eep! :frowning:

Is there a way to prevent this!?!?

Thanks,

Hi, from what I can remember, on Windows the WinKey cannot be
over-ridden or interrupted - it is passed directly to the shell
(Explorer), so you have to replace the shell (or hack the Windows
kernel) to get around it…

Eddy

P.S. Please could you look at my post regarding API usability, thanks!

Yeah, Logitech’s solution was to make the G15 keyboard, which has a manual
"disable" switch, which prevents the windows key from sending the press
message to Windows. That way gamers don’t have to worry about malicious LAN
partygoers who hit their windows button to sabotage their game!
If there were an easy (or difficult) software solution, I’m certain they
would have implemented it instead of a manual switch.
-Dave> ----- Original Message -----

From: eac203@ecs.soton.ac.uk (Edward Cullen)
To: “A list for developers using the SDL library.”
Sent: Monday, March 03, 2008 3:53 PM
Subject: Re: [SDL] Preventing Windows key from exiting fullscreen in SDL?

Bill Kendrick wrote:

Someone reported that pressing the ‘Windows’ key in Tux Paint while
in fullscreen mode caused it to exit fullscreen.

Eep! :frowning:

Is there a way to prevent this!?!?

Thanks,

Hi, from what I can remember, on Windows the WinKey cannot be
over-ridden or interrupted - it is passed directly to the shell
(Explorer), so you have to replace the shell (or hack the Windows
kernel) to get around it…

Eddy

P.S. Please could you look at my post regarding API usability, thanks!


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

If I remember correctly, UT3 somehow does prevent the Windows key from
getting out of the game. If this is true, it’s probably the only
example that I’ve seen of this behavior. It would also be very
interesting to know how they did it. I’m going off memory, though, as I
don’t have UT3 installed anymore. Maybe I’m mistaken.On Mon, 2008-03-03 at 16:06 -0600, David Olsen wrote:

Yeah, Logitech’s solution was to make the G15 keyboard, which has a manual
"disable" switch, which prevents the windows key from sending the press
message to Windows. That way gamers don’t have to worry about malicious LAN
partygoers who hit their windows button to sabotage their game!
If there were an easy (or difficult) software solution, I’m certain they
would have implemented it instead of a manual switch.
-Dave

----- Original Message -----
From: “Edward Cullen”
To: “A list for developers using the SDL library.”
Sent: Monday, March 03, 2008 3:53 PM
Subject: Re: [SDL] Preventing Windows key from exiting fullscreen in SDL?

Bill Kendrick wrote:

Someone reported that pressing the ‘Windows’ key in Tux Paint while
in fullscreen mode caused it to exit fullscreen.

Eep! :frowning:

Is there a way to prevent this!?!?

Thanks,

Hi, from what I can remember, on Windows the WinKey cannot be
over-ridden or interrupted - it is passed directly to the shell
(Explorer), so you have to replace the shell (or hack the Windows
kernel) to get around it…

Eddy

P.S. Please could you look at my post regarding API usability, thanks!


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


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

http://msdn2.microsoft.com/en-us/library/bb219746(VS.85).aspx

I didn’t read it all the way through, but the above link seems to
describe what you want.

Wow, thanks a lot. I wonder, can we add an API to SDL to do this?
In the meantime, I can ask my overworked Tux Paint porter, John P., if he
can look into including this in Tux Paint directly.

PS - That page is totally unusable (cannot scroll, and appears to be very
wide; text goes off the right side of my window) in Konqueror. How does one
even MAKE such a broken web page!? :slight_smile: I’ll see if SlowerFox can handle it.On Mon, Mar 03, 2008 at 11:50:24PM +0000, Brian wrote:

http://msdn2.microsoft.com/en-us/library/bb219746(VS.85).aspx

I didn’t read it all the way through, but the above link seems to
describe what you want.


-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/

PS - That page is totally unusable (cannot scroll, and appears to be very
wide; text goes off the right side of my window) in Konqueror. How does one
even MAKE such a broken web page!?

It comes from Microsoft. Why are you surprised?

That’s true. They work hard to make things as broken as possible. ;DOn Mon, Mar 03, 2008 at 04:52:24PM -0800, Mason Wheeler wrote:

It comes from Microsoft. Why are you surprised?


-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/

Bill Kendrick wrote:

http://msdn2.microsoft.com/en-us/library/bb219746(VS.85).aspx

I didn’t read it all the way through, but the above link seems to
describe what you want.

D’oh!

That makes sense… somehow I’d got the impression that you couldn’t
install a hook to catch WinKey…

Wow, thanks a lot. I wonder, can we add an API to SDL to do this?
In the meantime, I can ask my overworked Tux Paint porter, John P., if he
can look into including this in Tux Paint directly.

Hmm… how would you do this in an OS agnostic way? What should have
precedence - consistent interaction (from a user view) with the
underlying OS / WM or consistent cross-platform behaviour of an app?

I guess you could have three options; OS-default, intercept-all,
pass-through (pass-on unhandled keys).

PS - That page is totally unusable (cannot scroll, and appears to be very
wide; text goes off the right side of my window) in Konqueror. How does one
even MAKE such a broken web page!? :slight_smile: I’ll see if SlowerFox can handle it.

To be fair, Konqueror WWW isn’t the best part of KDE (and that’s coming
from a KDE fanboi!!!)…> On Mon, Mar 03, 2008 at 11:50:24PM +0000, Brian wrote:

It works in Firefox.

Maybe it is time to switch to a proper browser? :slight_smile:

Quoting Mason Wheeler :>> PS - That page is totally unusable (cannot scroll, and

appears to be very
wide; text goes off the right side of my window) in
Konqueror. How does one
even MAKE such a broken web page!?

It comes from Microsoft. Why are you surprised?


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


This message was sent using IMP, the Internet Messaging Program.