VirtualBox

Changeset 33884 in vbox


Ignore:
Timestamp:
Nov 9, 2010 10:14:09 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt4: log keyboard type in debug mode (temp)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp

    r33883 r33884  
    937937        if (   (keyCode == 0xa || keyCode == 0x32)
    938938            && KBGetLayoutType(LMGetKbdType()) == kKeyboardISO)
     939        {
    939940            keyCode = 0x3c - keyCode;
     941#ifdef DEBUG
     942            OSErr err = noErr;
     943            SInt32 type;
     944            if ((err = Gestalt(gestaltKeyboardType, &type)) == noErr)
     945                LogRel(("Keyboard type %d\n", (int32_t)type));
     946#endif /* DEBUG */
     947        }
    940948        unsigned scanCode = ::DarwinKeycodeToSet1Scancode(keyCode);
    941949        if (scanCode)
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