qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 16H Function 12H
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Get Enhanced Keyboard Flags      [AT] [PS/2]
 
  Obtains the status of various enhanced keyboard special keys and keyboard
  driver states.
 
  Input             Output
  ══════            ═══════════════════════════════════
  AH=12H            AX=flags
                       Bit(s)  Significance (if set)
                       ══════  ═══════════════════════
                       00H     right Shift key is down
                       01H     left Shift key is down
                       02H     either Ctrl key is down
                       03H     either Alt key is down
                       04H     Scroll Lock toggle is on
                       05H     Num Lock toggle is on
                       06H     Caps Lock toggle is on
                       07H     Insert toggle is on
                       08H     left Ctrl key is down
                       09H     left Alt key is down
                       0AH     right Ctrl key is down
                       0BH     right Alt key is down
                       0CH     Scroll key is down
                       0DH     Num Lock key is down
                       0EH     Caps Lock key is down
                       0FH     SysReq key is down
                                    -♦-