allegro5 icon indicating copy to clipboard operation
allegro5 copied to clipboard

ALLEGRO_KEY_QUOTE instead of ALLEGRO_KEY_ESCAPE

Open ZweiEuro opened this issue 4 years ago • 1 comments

editing the modified code for this: https://github.com/liballeg/allegro_wiki/wiki/Allegro-Vivace%3A-Basic-game-structure

Adding a char to save the last pressed key and then just display it with al_draw_textf with a simple %c %i.

I am on a Thinkpad E490 and for some reason the key escape, with fn lock off, returns 69 ? ALLEGRO_KEY_QUOTE ? None of my keys will trigger as an escape key, so i am kind of confused.

I am using wayland and sway, but escape works perfectly well with any other application (e.g. firefox fullscreen exiting)

ZweiEuro avatar Mar 06 '20 19:03 ZweiEuro

That's interesting. If you catch the ALLEGRO_EVENT_KEY_CHAR event, does that contain a quote in its unichar field?

SiegeLord avatar Mar 16 '20 01:03 SiegeLord