Difference between revisions of "83Plus:Software:usb8x/Asm Interface/KBD"

From WikiTI
Jump to: navigation, search
 
(Entry Points: added kbdversion)
Line 17: Line 17:
 
|-
 
|-
 
| [[/KBDGetMods|KBDGetMods]] || Get current modifier key status
 
| [[/KBDGetMods|KBDGetMods]] || Get current modifier key status
 +
|-
 +
| [[/KBDVersion|KBDVersion]] || Get driver version and RAM requirements
 
|}
 
|}

Revision as of 11:20, 27 August 2006

The usb8x keyboard driver is compatible with any keyboard conforming to the USB HID keyboard standard. However, it is not compatible with devices that have a keyboard connected to an internal hub (combination keyboard/mice, for example).


The keyboard driver is initialized via KBDInit. This entry point initializes both the driver and the keyboard hardware, so you may want to check to see if a device is connected via [[../IsDeviceConnected|IsDeviceConnected]] first.


After initializing the keyboard, use KBDGetKey to get keypress information. The driver maintains a 6-key keyboard buffer, so be sure to check for new keypresses with KBDGetKey regularly so the buffer doesn't fill.

Entry Points

KBDCheckDirect Check current keyboard matrix
KBDInit Initialize the keyboard driver and hardware
KBDGetKey Get keypress information
KBDGetMods Get current modifier key status
KBDVersion Get driver version and RAM requirements