September 28, 2021, 17:55:20

Author Topic: [bb] Proper Key Names by dapsycho [ 1+ years ago ]  (Read 685 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] Proper Key Names by dapsycho [ 1+ years ago ]
« on: June 29, 2017, 00:28:41 »
Title : Proper Key Names
Author : dapsycho
Posted : 1+ years ago

Description : Didnt know exactly what title to call this but heres a good description.

What I wanted was a function that would return the proper keyname when a user pressed a key. This was for my game so that the user could map keys to the right functions and would be presented with a proper name instead of the scancode or be limited to A-Z or 0-9.

This little bit of code (about 60 lines) will do exactly that. If you run it and press the Right Alt key it will display the scancode plus the key name (Right Alt).

Hope anyone finds this useful.

Code :
Code: BlitzBasic
  1. Please go here for a v.small 2k download:

Comments : none...


SimplePortal 2.3.6 © 2008-2014, SimplePortal