Keycodes to Keyname

BlitzMax Forums/BlitzMax Beginners Area/Keycodes to Keyname

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

for my key settings I use a function which detects the keycode
of the pressed key.
Then I want to display the name of the key (KEY_DELETE, KEY_UP..).
Is there a way to get the name of the key by the keycode?
For code 48-90 I could use "KEY_"+Chr(keycode), but for the other I would
have to create a table manually. Not really a problem, but perhaps there is a workaround?