Lines Matching defs:scancode
345 uint8_t scancode, asciicode, shift_flags;
353 scancode = GET_AL();
355 if (scancode == 0) {
366 switch (scancode) {
384 flag = (scancode & 0x7f) == 0x2a ? 0x02 : 0x01;
385 if (scancode & 0x80)
479 if (scancode & 0x80) {
481 if (scancode == 0xFA) {
484 } else if (scancode == 0xFE) {
490 if (scancode > MAX_SCAN_CODE) {
491 BX_INFO("KBD: int09h_handler(): unknown scancode read: 0x%02x!\n", scancode);
495 asciicode = scan_to_scanascii[scancode].alt;
496 scancode = scan_to_scanascii[scancode].alt >> 8;
498 asciicode = scan_to_scanascii[scancode].control;
499 scancode = scan_to_scanascii[scancode].control >> 8;
500 } else if (((mf2_state & 0x02) > 0) && ((scancode >= 0x47) && (scancode <= 0x53))) {
503 scancode = scan_to_scanascii[scancode].normal >> 8;
508 if (shift_flags & scan_to_scanascii[scancode].lock_flags) {
509 asciicode = scan_to_scanascii[scancode].normal;
510 scancode = scan_to_scanascii[scancode].normal >> 8;
512 asciicode = scan_to_scanascii[scancode].shift;
513 scancode = scan_to_scanascii[scancode].shift >> 8;
517 if (shift_flags & scan_to_scanascii[scancode].lock_flags) {
518 asciicode = scan_to_scanascii[scancode].shift;
519 scancode = scan_to_scanascii[scancode].shift >> 8;
521 asciicode = scan_to_scanascii[scancode].normal;
522 scancode = scan_to_scanascii[scancode].normal >> 8;
525 if (scancode==0 && asciicode==0) {
526 BX_INFO("KBD: int09h_handler(): scancode & asciicode are zero?\n");
528 enqueue_key(scancode, asciicode);
531 if ((scancode & 0x7f) != 0x1d) {