2 * DOS interrupt 16h handler
19 /**********************************************************************
22 * Handler for int 16h (keyboard)
26 * KEYB.COM (DOS >3.2) adds functions to this interrupt, they are
27 * not currently listed here.
30 void WINAPI
INT_Int16Handler( CONTEXT
*context
)
32 switch AH_reg(context
) {
34 case 0x00: /* Get Keystroke */
35 /* Returns: AH = Scan code
36 AL = ASCII character */
37 TRACE(int16
, "Get Keystroke\n");
38 CONSOLE_GetKeystroke(&AH_reg(context
), &AL_reg(context
));
41 case 0x01: /* Check for Keystroke */
42 /* Returns: ZF set if no keystroke */
44 /* AL = ASCII character */
45 TRACE(int16
, "Check for Keystroke\n");
46 if (!CONSOLE_CheckForKeystroke(&AH_reg(context
), &AL_reg(context
)))
56 case 0x02: /* Get Shift Flags */
57 FIXME(int16
, "Get Shift Flags - Not Supported\n");
60 case 0x03: /* Set Typematic Rate and Delay */
61 FIXME(int16
, "Set Typematic Rate and Delay - Not Supported\n");
64 case 0x09: /* Get Keyboard Functionality */
65 FIXME(int16
, "Get Keyboard Functionality - Not Supported\n");
66 /* As a temporary measure, say that "nothing" is supported... */
70 case 0x0a: /* Get Keyboard ID */
71 FIXME(int16
, "Get Keyboard ID - Not Supported\n");
74 case 0x10: /* Get Enhanced Keystroke */
75 FIXME(int16
, "Get Enhanced Keystroke - Not Supported\n");
78 case 0x11: /* Check for Enhanced Keystroke */
79 FIXME(int16
, "Check for Enhanced Keystroke - Not Supported\n");
82 case 0x12: /* Get Extended Shift States */
83 FIXME(int16
, "Get Extended Shift States - Not Supported\n");
87 FIXME(int16
, "Unknown INT 16 function - 0x%x\n", AH_reg(context
));