Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Gurok on Sun 16/02/2014 14:04:54

Title: on_key_press and Escape Bug?
Post by: Gurok on Sun 16/02/2014 14:04:54
I created a new game using the default template and added this line to the top of on_key_press:

Display("Keycode: %d", keycode);

If I play the game, then hit Ctrl+Q, I see a quick message about the keypress, then the quit dialogue is displayed. If I click the "Play" button with the mouse, the game won't recognise me hitting Escape until I hit another key.

Is this a bug or some feature I don't know about?

Can anyone else test and verify that this happens? I am using AGS 3.3.0.
Title: Re: on_key_press and Escape Bug?
Post by: Crimson Wizard on Sun 16/02/2014 14:44:20
It's a pretty well known problem with Allegro library:
http://www.adventuregamestudio.co.uk/forums/index.php?issue=378.0

Plan is to update to Allegro 4.4 (and/or aplly a patch).