VirtualBox

Changeset 81246 in vbox


Ignore:
Timestamp:
Oct 14, 2019 10:00:06 AM (5 years ago)
Author:
vboxsync
Message:

Main: keyboard HID usage ID is 16-bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/KeyboardImpl.cpp

    r79738 r81246  
    256256    int vrc = VINF_SUCCESS;
    257257    uint32_t u32Usage;
    258     u32Usage = (uint8_t)aUsageCode | ((uint32_t)(uint8_t)aUsagePage << 16) | (fKeyRelease ? 0x80000000 : 0);
     258    u32Usage = (uint16_t)aUsageCode | ((uint32_t)(uint8_t)aUsagePage << 16) | (fKeyRelease ? 0x80000000 : 0);
    259259    vrc = pUpPort->pfnPutEventHid(pUpPort, u32Usage);
    260260    if (RT_FAILURE(vrc))
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