Difference between revisions of "Talk:83Plus:Software:usb8x/BASIC Interface/KBDGetKey"
From WikiTI
(What are getKey codes?) |
|||
Line 1: | Line 1: | ||
"It'd be nice to get a normal BASIC getKey-style return code. Perhaps the KBD driver wrapper could overwrite H (element 6, which is usually zero anyway) with that before returing." | "It'd be nice to get a normal BASIC getKey-style return code. Perhaps the KBD driver wrapper could overwrite H (element 6, which is usually zero anyway) with that before returing." | ||
: What key code format is used by BASIC getKey? If someone has code to convert GetKey codes to getKey codes, I'll put in usb8x no problem. --[[User:Dan Englender|Dan Englender]] 18:02, 27 January 2007 (PST) | : What key code format is used by BASIC getKey? If someone has code to convert GetKey codes to getKey codes, I'll put in usb8x no problem. --[[User:Dan Englender|Dan Englender]] 18:02, 27 January 2007 (PST) | ||
+ | |||
+ | ::getKey codes are translated scancodes; there's no connection with GetKey codes. Each key is assigned the value (row*10+column), so Y= is 11, Window is 12, Zoom is 13, and so forth up to Enter = 105. The translation is done by the routine [[83Plus:BCALLs:4744|GetK]], which itself uses a LUT. |
Revision as of 14:25, 28 January 2007
"It'd be nice to get a normal BASIC getKey-style return code. Perhaps the KBD driver wrapper could overwrite H (element 6, which is usually zero anyway) with that before returing."
- What key code format is used by BASIC getKey? If someone has code to convert GetKey codes to getKey codes, I'll put in usb8x no problem. --Dan Englender 18:02, 27 January 2007 (PST)
- getKey codes are translated scancodes; there's no connection with GetKey codes. Each key is assigned the value (row*10+column), so Y= is 11, Window is 12, Zoom is 13, and so forth up to Enter = 105. The translation is done by the routine GetK, which itself uses a LUT.