Difference between revisions of "83Plus:Software:usb8x/Asm Interface/KBD/KBDGetMods"
From WikiTI
(Oops, wrong routine first time around) |
|||
Line 1: | Line 1: | ||
== Synopsis == | == Synopsis == | ||
− | '''Name:''' | + | '''Name:''' KBDGetMods |
'''Minimum usb8x version:''' 0.11 | '''Minimum usb8x version:''' 0.11 | ||
− | + | Returns the current state of modifier and lock keys | |
=== Inputs === | === Inputs === | ||
− | + | ''None'' | |
=== Outputs === | === Outputs === | ||
− | * | + | * A: Current modifier keys |
+ | * B: Current lock keys | ||
=== Destroys === | === Destroys === | ||
− | * | + | * BC, DE, HL |
== Notes == | == 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. | |
− | + | ||
− | + | ||
− | + |
Latest revision as of 10:49, 27 August 2006
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.