Changeset 30449 in vbox for trunk/src/VBox/Frontends/Common/VBoxKeyboard/keyboard.c
- Timestamp:
- Jun 25, 2010 11:53:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/Common/VBoxKeyboard/keyboard.c
r29654 r30449 121 121 scan = 0x138; 122 122 } 123 if (keysym != 0 && scan == 0) 124 scan = keyc2scan[code]; 123 /* Disabled "keysym != 0" as we can now match keycodes with no keysym */ 124 if (/* keysym != 0 && */ scan == 0) 125 scan = keyc2scan[code]; 125 126 126 127 return scan; … … 529 530 sizeof(main_keyboard_type_list) 530 531 / sizeof(main_keyboard_type_list[0])); 532 #ifdef DEBUG 533 /* Assertion */ 534 if (sizeof(keyc2scan) != sizeof(main_keyboard_type_scans[cMap])) 535 { 536 printf("ERROR: keyc2scan array size doesn't match main_keyboard_type_scans[]!\n"); 537 return 0; 538 } 539 #endif 531 540 if (cMap >= 0) 532 541 { 533 memcpy(keyc2scan, main_keyboard_type_scans[cMap], KEYC2SCAN_SIZE);542 memcpy(keyc2scan, main_keyboard_type_scans[cMap], sizeof(keyc2scan)); 534 543 return 1; 535 544 }
Note:
See TracChangeset
for help on using the changeset viewer.