January 19, 2021, 08:39:56 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] GetScanCode() by Russell [ 1+ years ago ]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [bb] GetScanCode() by Russell [ 1+ years ago ] (Read 1161 times)
BlitzBot
Jr. Member
Posts: 1
[bb] GetScanCode() by Russell [ 1+ years ago ]
«
on:
June 29, 2017, 12:28:43 AM »
Title :
GetScanCode()
Author :
Russell
Posted :
1+ years ago
Description :
Returns the current scan code so that it can be used in a select/case structure, etc.
Code :
Code: BlitzBasic
Function
GetScanCode
(
Low,Hi
)
For
a = Low
to
Hi
If
KeyDown
(
a
)
then
Return
a
Next
Return
False
End Function
; Returns the current key, or false if none in the low/hi range are being pressed. Low/Hi allow you to only scan a certain range (ignoring the escape key, for example)
Comments :
none...
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
User Input
»
[bb] GetScanCode() by Russell [ 1+ years ago ]
SimplePortal 2.3.6 © 2008-2014, SimplePortal