VirtualBox

Changeset 29749 in vbox


Ignore:
Timestamp:
May 21, 2010 9:55:12 PM (15 years ago)
Author:
vboxsync
Message:

Devices and FE/Common: keyboard table cleanup and a hack to support Sun keys on the emulated USB keyboard (Solaris host only)

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r28909 r29749  
    385385    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 28-2F */
    386386    0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x00, 0x46, /* 30-37 */
    387     0xe6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 38-3F */
    388     0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x4a, /* 40-47 */
     387                   /* Sun-specific keys.  Most of the XT codes are made up */
     388    0xe6, 0x00, 0x00, 0x75, 0x76, 0x77, 0xA3, 0x78, /* 38-3F */
     389    0x80, 0x81, 0x82, 0x79, 0x00, 0x48, 0x00, 0x4a, /* 40-47 */
    389390    0x52, 0x4b, 0x00, 0x50, 0x00, 0x4f, 0x00, 0x4d, /* 48-4F */
    390391    0x51, 0x4e, 0x49, 0x4c, 0x00, 0x00, 0x00, 0x00, /* 50-57 */
  • trunk/src/VBox/Frontends/Common/VBoxKeyboard/keyboard-tables.h

    r29720 r29749  
    8383    /* Sun Menu, additional Japanese keys */
    8484#ifdef sun
    85     0x15d, 0x79, 0x00, 0x29, 0x00, 0x00, 0x00, 0x00,             /* FF20 */
     85    0x15D, 0x79, 0x00, 0x29, 0x00, 0x00, 0x00, 0x00,             /* FF20 */
    8686    0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00,              /* FF28 */
    8787#else
    88     0x15d, 0x00, 0x7b, 0x79, 0x00, 0x00, 0x00, 0x70,             /* FF20 */
     88    0x15D, 0x00, 0x7B, 0x79, 0x00, 0x00, 0x00, 0x70,             /* FF20 */
    8989    0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00,              /* FF28 */
    9090#endif /* sun */
    9191    /* additional Korean keys */
    92     0x00, 0xf2, 0x00, 0x00, 0xf1, 0x00, 0x00, 0x00,              /* FF30 */
     92    0x00, 0xF2, 0x00, 0x00, 0xF1, 0x00, 0x00, 0x00,              /* FF30 */
    9393    /* unused */
    9494    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,              /* FF38 */
     
    9999    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,              /* FF58 */
    100100    /* misc keys */
    101                                     /* SunUndo SunAgain Menu */
     101                                                /* Menu */
    102102#ifdef sun
    103     /*?*/ 0, 0x137, 0x7b, 0x152, 0x00, 0x107,  0x105,   0x15D,   /* FF60 */
     103    /*?*/ 0, 0x137, 0x7b, 0x152, 0x00, 0x00, 0x00, 0x15D,        /* FF60 */
    104104#else
    105     /*?*/ 0, 0x137, 0, 0x152, 0x00,    0x107,  0x105,   0x15D,   /* FF60 */
     105    /*?*/ 0, 0x137, 0, 0x152, 0x00, 0x00, 0x00,    0x15D,        /* FF60 */
    106106#endif /* sun */
    107  /* SunFind SunStop SunHelp */
    108     0x141,  0x168,  0x175, 0x146, 0x00, 0x00, 0x00, 0x00,        /* FF68 */
     107             /* Help */
     108    0x00, 0x00, 0x13B, 0x146, 0x00, 0x00, 0x00, 0x00,            /* FF68 */
    109109    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,              /* FF70 */
    110110    /* keypad keys */
     
    118118    0x52, 0x4F, 0x50, 0x51, 0x4B, 0x4C, 0x4D, 0x47,              /* FFB0 */
    119119    0x48, 0x49, 0x00, 0x00, 0x00, 0x00,                          /* FFB8 */
    120     /* function keys (F1 to F24) */
     120    /* function keys (F1 to F12) */
    121121                                        0x3B, 0x3C,
    122122    0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44,              /* FFC0 */
    123     0x57, 0x58, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69,              /* FFC8 */
    124     0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x76, 0x00, 0x00,              /* FFD0 */
     123#ifdef sun
     124    /* On Solaris, F11 to F20 are actually keys on the left function block.
     125     * Since just one of them has a set 1 PS/2 scan code, we arbitrarily assign
     126     * the rest scan codes which are extended versions of F2 to F10.  With
     127     * the emulated PS/2 keyboard this will not help anyone, but with the
     128     * emulated USB one we can translate them to the proper USB scan codes. */
     129    0x13C, 0x13D, 0x72, 0x13E, 0x13F, 0x140, 0x141, 0x142,       /* FFC8 */
     130    0x143, 0x144, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,            /* FFD0 */
     131#else
     132    0x57, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,              /* FFC8 */
     133    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,              /* FFD0 */
     134#endif
    125135    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,              /* FFD8 */
    126136    /* modifier keys */
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