March 02, 2021, 01:25:15 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Help
Search
Gallery
Login
Register
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
User Input
»
[bb] Proper Key Names by dapsycho [ 1+ years ago ]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [bb] Proper Key Names by dapsycho [ 1+ years ago ] (Read 605 times)
BlitzBot
Jr. Member
Posts: 1
[bb] Proper Key Names by dapsycho [ 1+ years ago ]
«
on:
June 29, 2017, 12:28:41 AM »
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
Please go here
for
a v.small 2k download:
http://www.blitzcoder.com/cgi-
bin
/showcase/showcase_showentry.pl?id=dapsycho05102002182739&comments=no
Comments :
none...
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
User Input
»
[bb] Proper Key Names by dapsycho [ 1+ years ago ]
SimplePortal 2.3.6 © 2008-2014, SimplePortal