allegro5
allegro5 copied to clipboard
ALLEGRO_KEY_QUOTE instead of ALLEGRO_KEY_ESCAPE
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)
That's interesting. If you catch the ALLEGRO_EVENT_KEY_CHAR
event, does that contain a quote in its unichar field?