Difference between revisions of "83Plus:RAM:843F"
From WikiTI
Line 8: | Line 8: | ||
Stores the scan code of the key being pressed. This is set by [[83Plus:BCALLs:4015|KbdScan]] and read by [[83Plus:BCALLs:4018|GetCSC]]. It is only valid when the flag [[83Plus:Flags:00#Bit_3|kbdSCR,(iy+kbdFlags)]] is set. | Stores the scan code of the key being pressed. This is set by [[83Plus:BCALLs:4015|KbdScan]] and read by [[83Plus:BCALLs:4018|GetCSC]]. It is only valid when the flag [[83Plus:Flags:00#Bit_3|kbdSCR,(iy+kbdFlags)]] is set. | ||
+ | |||
+ | GetCSC can also process diagonal arrow key presses; set [[83Plus:Flags:2C#Bit_0|bit 0 of mouseFlag1]] to enable this behavior, though you shouldn't return to the OS with it set. Here are the equates: | ||
+ | skDownLeft EQU 252 | ||
+ | skDownRight EQU 250 | ||
+ | skUpLeft EQU 245 | ||
+ | skUpRight EQU 243 |
Latest revision as of 03:29, 10 May 2014
Synopsis
Official Name: kbdScanCode
Memory Address: 843Fh
Length: 1 byte.
Stores the scan code of the key being pressed. This is set by KbdScan and read by GetCSC. It is only valid when the flag kbdSCR,(iy+kbdFlags) is set.
GetCSC can also process diagonal arrow key presses; set bit 0 of mouseFlag1 to enable this behavior, though you shouldn't return to the OS with it set. Here are the equates:
skDownLeft EQU 252 skDownRight EQU 250 skUpLeft EQU 245 skUpRight EQU 243