83Plus:Software:usb8x/Asm Interface/KBD/KBDCheckDirect

From WikiTI
Jump to: navigation, search


Name: KBDCheckDirect

Minimum usb8x version: 0.12

Check for a key down in the keyboard matrix


  • C: Raw key code to check


  • Z: The key is currently being pressed


  • AF, BC, HL


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