Re: [AD] new window hooks patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Vincent Penquerc'h wrote:
> 
> Just out of curiosity, I might have missed this: what is the point
> of simulating an ESC keypress ???
> *puzzled*

The Windows port behaves already like that in windowed modes (as Angelo
implicitly noted it when he was refering to the 'compatibility with the past'
and the two lines in win/wwnd.c).
I don't know when it was implemented, but I find this feature very convenient:
in my app, pressing the ESC key stops the show and causes the main menu to
display; in windowed mode (selectable at startup), when the user clicks
(intentionally or not) on the close button, the app doesn't directly terminate
but instead displays the menu.

-- 
Eric Botcazou (ebotcazou@xxxxxxxxxx)
Web site: http://www.multimania.com/ebotcazou



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/