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

From WikiTI
Jump to: navigation, search
 
m (C is input, not A)
 
Line 2: Line 2:
 
'''Name:''' KBDCheckDirect
 
'''Name:''' KBDCheckDirect
  
'''Minimum usb8x version:''' 0.11
+
'''Minimum usb8x version:''' 0.12
  
 
Check for a key down in the keyboard matrix
 
Check for a key down in the keyboard matrix
  
 
=== Inputs ===
 
=== Inputs ===
* A: Raw key code to check
+
* C: Raw key code to check
  
 
=== Outputs ===
 
=== Outputs ===

Latest revision as of 22:18, 26 March 2007

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