Scancode: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


Each time you press a key, the scancode for that key is displayed.
Each time you press a key, the scancode for that key is displayed.
Here are a few of the Scan codes:
{| width="50%" cellspacing="2" cellpadding="5" border="1" align="center"
|-
!Key
!Scan Code
|-
| Tab
| ooo
|}


See the [[KStat$]] [[internal function]] for more information.
See the [[KStat$]] [[internal function]] for more information.

Revision as of 17:47, 5 May 2014

A scan code is a two-part or four-part hexadecimal code associated with a keystroke (so called because it comes from scanning the keyboard).

To determine the standardized Business Rules scancodes, run the following program:

10 LET X$ = KSTAT$(1)
20 PRINT UNHEX$(X$)
30 GOTO 10

Each time you press a key, the scancode for that key is displayed.

Here are a few of the Scan codes:

Key Scan Code
Tab ooo


See the KStat$ internal function for more information.