Talk:83Plus:Software:usb8x/BASIC Interface/KBDGetKey

From WikiTI
< Talk:83Plus:Software:usb8x/BASIC Interface
Revision as of 15:25, 28 January 2007 by FloppusMaximus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

"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. FloppusMaximus 14:25, 28 January 2007 (PST)