[SDL] Alt-F4 not working on Windows
Erik
libsdl.org at mail.obsequious.org
Mon May 5 19:20:11 PDT 2008
I didn't say that. I was addressing the prior statement because I didn't
understand at all how a game giving an option on alt-f4 (instead of just
exiting) means that the OS (programmatic) default behavior is being
overridden somehow. It's just handling the QUIT event instead of ALT-F4
keypress event. That's also what you just said, right? it's not like QUIT
event blows a hole in your program to escape, that's just how some people
implement it rather than give you a warning like choosing quit from a menu
might. My position from the beginning was that it should be possible to
override behavior of things like alt-f4 or alt-tab on Windows, but I had
also stated tangentially that most apps really shouldn't. So anyway, back to
the topic at hand.
Erik
On Mon, May 5, 2008 at 7:30 PM, Charles McGarvey <
onefriedrice at brokenzipper.com> wrote:
>
> I'm not talking about the program exiting without program intervention
> which, I believe, is a point that you brought up awhile ago that really has
> nothing to do with this discussion. Hopefully the point I made is clearer
> now. I've been following this thread somewhat casually, so if this point
> has already been established and the discussion has turned to the technical
> matters of implementation or something else, then I am sorry; move along.
>
> chaz
>
> ----- Original Message -----
> *From:* Erik <libsdl.org at mail.obsequious.org>
> *To:* A list for developers using the SDL library. (includes SDL-announce)<sdl at lists.libsdl.org>
> *Sent:* Monday, May 05, 2008 1:43 PM
> *Subject:* Re: [SDL] Alt-F4 not working on Windows
>
> Unless I missed something in a prior mail, all we are talking about here
> is whether or not SDL will honor Windows sending an alt-f4 as a WM_QUIT
> event (that you still have to handle yourself in your code) or instead send
> it as an alt-f4 keypress event to give the programmer maximum flexibility.
> Not exit without program intervention or anything like that.
>
> Erik
>
> On Mon, May 5, 2008 at 2:34 PM, Graham Houston <
> graham.houston at rushpark.co.uk> wrote:
>
> > On Mon, 05 May 2008 20:23:06 +0100, Charles McGarvey <
> > onefriedrice at brokenzipper.com> wrote:
> >
> > I don't know about the others, but I'm pretty sure Blizzard does make
> > > ALT-F4 exit the application (at least in WC3). If you're in a game, it will
> > > ask you if you really want to quit,
> > >
> >
> > So whatever they use doe's not do the default on ALT+F4 it's hooked so
> > they can give an option! that's the point we're making, how do we get this
> > control in SDL if it's buried in a way that we have no control over it.
> >
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
--
Aide-toi, le Ciel t'aidera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080505/95f276a2/attachment.htm>
More information about the SDL
mailing list