Eh, my game just has a "quit" option that returns you to the main menu. However pressing Alt+F4 will quit the game immediately (without even fading), so in some sense both commands are available either way.
How to exit the game gracefully?
You can Always tell the player in the manual to use Alt + F4.
Does anyone know how to disable Alt+Control+Delete and Alt + F4 for C++ ?,
Players should not be allowed to quit in my game, before they played 1 level, or win a mini exit stress game.
Fun.
S T O P C R I M E !
Visual Pro 2005 C++ DX9 Cubase VST 3.70 Working on : LevelContainer class & LevelEditor
Personally I would say that overriding standard OS level commands is a bad thing. Ideally your control scheme should be designed and laid out such that a user is very unlikely to accidentally select a command like alt+F4 (I'm really not a fan of F-keys being used for game commands due to just how common keyboards that lack distinct F-keys are. Forcing a user to then add the Fn key into the mix is not a good design in my mind. And given the number of people who now own ONLY a laptop, this issue should be considered by developers.)
OSX CMD+Q however is a little more tricky.
A program should play nice in the environment it runs in. Along with exiting nicely it should also multitask nicely, not screw with system audio or video, and work well in various multi-monitor setups.
If your signature on a web forum takes up more space than your average post, then you are doing things wrong.
Most gamers I know now have a shortcut on their keyboard to do Alt-F4 (ya, because two keys is too long).
When a player wants to quit, he wants to quit now.
Trying to alleviate the anxiety caused by a misclick from the player by delaying everyone's dedicated action would cause more harm than good.
Personally I would say that overriding standard OS level commands is a bad thing.
Hi,
- generally, the all current object-oriented programming language, has an independent "on close" event, where we can choose the outcome.
Good luck.
Personally I would say that overriding standard OS level commands is a bad thing.
Hi,
- generally, the all current object-oriented programming language, has an independent "on close" event, where we can choose the outcome.
Good luck.
That's so barely relevant that I can only assume you're only responding in order to share the link in your signature -- and I've noticed that a lot of your other posts are pretty similar -- so I've removed it from this particular post. Please try to ensure you're only replying if you have something relevant, meaningful and on-topic to say.
- Jason Astle-Adams
Personally I would say that overriding standard OS level commands is a bad thing.
Hi,
- generally, the all current object-oriented programming language, has an independent "on close" event, where we can choose the outcome.
Good luck.
That's so barely relevant that I can only assume you're only responding in order to share the link in your signature
Thank you for your opinion.
This message is to the intended meaning, that even trying to get away with Alt-F4, in modern language, we bid the walking "on close" or "on exit" event, where we have the opportunity to choose a return or exit. Without processing this event, just exit.
Thank you again.