October 28, 2020, 05:20:34 AM

Author Topic: [bb] GetScanCode() by Russell [ 1+ years ago ]  (Read 1117 times)

Offline 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
  1. Function GetScanCode(Low,Hi)
  2. For a = Low to Hi
  3. If KeyDown(a) then Return a
  4. Next
  5. Return False
  6. End Function
  7.  
  8. ; 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...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal