VirtualBox

Changeset 40392 in vbox for trunk/src/VBox/Devices/Input


Ignore:
Timestamp:
Mar 7, 2012 2:16:40 PM (13 years ago)
Author:
vboxsync
Message:

Devices/keyboards: try to better support Sun function keys, take 2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/UsbKbd.cpp

    r40326 r40392  
    364364
    365365/** Lookup table for converting PC/XT scan codes to USB HID usage codes. */
     366/** We map the scan codes for F13 to F23 to the usage codes for Sun keyboard
     367 *  left-hand side function keys rather than to the standard F13 to F23 usage
     368 *  codes, since we suspect that there are more people wanting Sun keyboard
     369 *  emulation than emulation of other keyboards with extended function keys. */
    366370static uint8_t aScancode2Hid[] =
    367371{
     
    378382    0x5a, 0x5b, 0x62, 0x63, 0x00, 0x00, 0x64, 0x44, /* 50-57 */
    379383    0x45, 0x67, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, /* 58-5F */
    380     0x00, 0x00, 0x00, 0x00, 0x68, 0x69, 0x6a, 0x6b, /* 60-67 */
    381     0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x00, /* 68-6F */
     384               /* Sun keys: Props Undo  Front Copy */
     385    0x00, 0x00, 0x00, 0x00, 0x76, 0x7a, 0x77, 0x7c, /* 60-67 */
     386 /* Open  Paste Find  Cut   Stop  Again Help */
     387    0x74, 0x7d, 0x7e, 0x7b, 0x78, 0x79, 0x75, 0x00, /* 68-6F */
    382388    0x88, 0x91, 0x90, 0x87, 0x00, 0x00, 0x00, 0x00, /* 70-77 */
    383389    0x00, 0x8a, 0x00, 0x8b, 0x00, 0x89, 0x85, 0x00  /* 78-7F */
     
    394400    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 28-2F */
    395401    0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x00, 0x46, /* 30-37 */
    396                    /* Sun-specific keys.  The type 1 codes are made up */
    397     0xe6, 0x00, 0x00, 0x75, 0x76, 0x77, 0x00, 0x00, /* 38-3F */
     402    0xe6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 38-3F */
    398403    0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x4a, /* 40-47 */
    399404    0x52, 0x4b, 0x00, 0x50, 0x00, 0x4f, 0x00, 0x4d, /* 48-4F */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette