83Plus:Software:usb8x/Asm Interface/KBD/KBDCheckDirect
From WikiTI
Synopsis
Name: KBDCheckDirect
Minimum usb8x version: 0.12
Check for a key down in the keyboard matrix
Inputs
- C: 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