GameMaker: Studio

GameMaker: Studio

View Stats:
Draw keyboard keys.
I didn't find an answer to this one and since english is not my main language I don't really know how to phrase it right... If there's an already existing post, please direct me to it ! :)

Anyway, my problem is that I'd like to implement a "chose your keys" system where the player can remap the keyboard keys to all the action ingame. But to do so I need to be able to write the names of the keys as in "Tab", "E", "Escape" and such... But GM seems to use numbers codes and not fully understandable keys' names.
Is there a way to draw the full name of the keys without having to do a script that says "if key == ord('A') { name = "A"; }

Thanks in advance for your answers !
< >
Showing 1-4 of 4 comments
MrDave Oct 9, 2017 @ 3:46am 
This might help, I wrote a table that shows all the keycodes and what their human readable name would be:
http://www.davetech.co.uk/gamemakerkeyboardasciicodes

At the bottom I even put a little code to help you do exactly what you want.
adresse.internet Oct 9, 2017 @ 4:37am 
Waoh ! Ok, that's exactly what I wanted, but didn't want to do myself ^^ Thanks man, that's awesome !!
MrDave Oct 9, 2017 @ 5:01am 
Np, you might be the only other person to use that page so it makes all the time I spent doing it slightly more worth it.
adresse.internet Oct 9, 2017 @ 5:09am 
Hahaha. You're awesome !
I can't believe that's not a built in thing though...
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Oct 9, 2017 @ 1:29am
Posts: 4