83Plus:Software:usb8x/Asm Interface/KBD/KBDGetMods
From WikiTI
Revision as of 10:49, 27 August 2006 by Dan Englender (Talk | contribs)
Contents
Synopsis
Name: KBDGetMods
Minimum usb8x version: 0.11
Returns the current state of modifier and lock keys
Inputs
None
Outputs
- A: Current modifier keys
- B: Current lock keys
Destroys
- BC, DE, HL
Notes
The current modifier keys are returned from the last report received from the keyboard. The lock keys are returned based on the internal state kept by the driver. The lock key data is only valid if lock keys are being handled automatically by the driver (as indicated in flags passed to [[../KBDInit|KBDInit]]).
Equate values for modifier keys and lock keys can be found in usb8x.inc.