83Plus:Software:usb8x/Asm Interface/KBD/KBDCheckDirect
From WikiTI
Revision as of 10:46, 27 August 2006 by Dan Englender (Talk | contribs)
Synopsis
Name: KBDCheckDirect
Minimum usb8x version: 0.11
Check for a key down in the keyboard matrix
Inputs
- A: Raw key code to check
Outputs
- Z: The key is currently being pressed
Destroys
- AF, BC, HL
Notes
This routine checks whether a key is currently being pressed on the keyboard. It will continue to return true as long as the key is held down. This is equivilant to "direct input" on the built-in keypad. The raw key equates used by this routine can be found in usb8x.inc.
Most programs should instead use [[../KBDGetKey|KBDGetKey]], which provides higher level key press support.
See Also
- [[../KBDGetKey|KBDGetKey]] - Get key presses