on_key_press and Escape Bug?

Started by Gurok, Sun 16/02/2014 14:04:54

Previous topic - Next topic

Gurok

I created a new game using the default template and added this line to the top of on_key_press:

Code: ags
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.
[img]http://7d4iqnx.gif;rWRLUuw.gi

Crimson Wizard

#1
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).

SMF spam blocked by CleanTalk