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

From WikiTI
Jump to: navigation, search

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.