Difference between revisions of "83Plus:Software:usb8x/Asm Interface/KBD"
From WikiTI
m |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
− | The keyboard driver is initialized via [[/KBDInit|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 [[ | + | The keyboard driver is initialized via [[83Plus:Software:usb8x/Asm_Interface/KBD/KBDInit|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 [[83Plus:Software:usb8x/Asm_Interface/IsDeviceConnected|IsDeviceConnected]] first. |
− | After initializing the keyboard, use [[/KBDGetKey|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. | + | After initializing the keyboard, use [[83Plus:Software:usb8x/Asm_Interface/KBD/KBDGetKey|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 == | == Entry Points == | ||
{| border="1" cellpadding="2" cellspacing="0" | {| border="1" cellpadding="2" cellspacing="0" | ||
|- | |- | ||
− | | [[/KBDCheckDirect|KBDCheckDirect]] || Check current keyboard matrix | + | | [[83Plus:Software:usb8x/Asm_Interface/KBD/KBDCheckDirect|KBDCheckDirect]] || Check current keyboard matrix |
|- | |- | ||
− | | [[/KBDInit|KBDInit]] || Initialize the keyboard driver and hardware | + | | [[83Plus:Software:usb8x/Asm_Interface/KBD/KBDInit|KBDInit]] || Initialize the keyboard driver and hardware |
|- | |- | ||
− | | [[/KBDGetKey|KBDGetKey]] || Get | + | | [[83Plus:Software:usb8x/Asm_Interface/KBD/KBDGetKey|KBDGetKey]] || Get key presses |
|- | |- | ||
− | | [[/KBDGetMods|KBDGetMods]] || Get current modifier key status | + | | [[83Plus:Software:usb8x/Asm_Interface/KBD/KBDGetMods|KBDGetMods]] || Get current modifier key status |
+ | |- | ||
+ | | [[83Plus:Software:usb8x/Asm_Interface/KBD/KBDVersion|KBDVersion]] || Get driver version and RAM requirements | ||
|} | |} |
Latest revision as of 10:07, 17 January 2010
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 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 key presses |
KBDGetMods | Get current modifier key status |
KBDVersion | Get driver version and RAM requirements |