Jump to content
  • Advertisement
Sign in to follow this  
vcGamer

Disabling dangerous keys in full-screen

This topic is 4779 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi friends I've recently found an article at MSDN about disabling the dangerous keys (i.e. win logo, alt-tab...) in full screen apps, and as it is mentioned, there's no more any need to do the common dirty works (reseting, reloading & etc). Is it safe to use this method? Do I still need to do the old stuff or I can feel free to use this approach and be sure of the promised operations? thanks for your help www.galaxyroad.com

Share this post


Link to post
Share on other sites
Advertisement
You should ALWAYS have it set up for a proper reset and reload no matter what.
There are more things than the windows key that can bring you out of full screen mode.

To disable them you need to subclass the keyboard and intercept the messages yourself before they are passed to the WndProc.

Share this post


Link to post
Share on other sites
You should always have some means to reset and recreate your objects, even if you disable those keys. Unexpected things can still happen like a modal dialog or message box of another program which will minimize your's.

And, IMHO, the ability to tab out of a fullscreen game to adjust mp3 player settings and similar things is basic functionality.

Share this post


Link to post
Share on other sites
You should really take proper care of reseting devices when task switching as a task switch can be called also by programms as the well known icq as example or any other app that pops up and demands focus.

So don't try to avoid this piece of work.

cheers,
Marcel

Share this post


Link to post
Share on other sites
FFXI PC for example, you alt+tab, the game crash's... nicely of course, with a warning "FFXI lost fullscreen mode."

That drives me nuts! Nothing should be that controlling of how I can manuever around my comp. ALT+TAB should be available in any programs running on the Win Kernel.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I agree with everyone who has posted. Look at Quake 3 arena for example (well, atleast Rocket Arena 3). It doesn't allow for alt-tabbing and it is the most annoying thing ever. Then, when another program demands attention (like AIM losing connection or someone trying to send you a file), the window starts flickering into the game, and there's no way to fix it except to exit and restart. Bad design, avoid it at all costs.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
exactly. as a developer you starting point should always be: what do my users want my program to do. Not what you think would be the easiest/fastest solution.

Share this post


Link to post
Share on other sites
Disabling shortcut keys for games instructs yo how to disable annoying things like the windows key, which is often between the ctrl/alt keys, and is thus pressed accidently.

"Games for Microsoft Windows" Logo for Applications is a specification of things you should and shouldn't do in your game. It's a good idea to follow it, even if you don't want to get certified. 1.7 says you should support switching between tasks.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!