VirtualBox

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


Ignore:
Timestamp:
Sep 27, 2023 3:51:21 PM (14 months ago)
Author:
vboxsync
Message:

DrvKeyboardQueue: Added a compile time option to not pass along any HID Consumer/Desktop Control usage page keys.

File:
1 edited

Legend:

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

    r99739 r101298  
    125125/* Keyboard usage page (07h). */
    126126#define KB(key)     (RT_MAKE_U32(0, USB_HID_KB_PAGE) | (uint16_t)key)
    127 /* Consumer Control usage page (0Ch). */
    128 #define CC(key)     (RT_MAKE_U32(0, USB_HID_CC_PAGE) | (uint16_t)key)
    129 /* Generic Desktop Control usage page (01h). */
    130 #define DC(key)     (RT_MAKE_U32(0, USB_HID_DC_PAGE) | (uint16_t)key)
    131 /* Untranslated/unised, shouldn't be encountered. */
     127
     128#ifndef VBOX_DISABLE_HID_CC_DC_PASSTHROUGH
     129 /* Consumer Control usage page (0Ch). */
     130 #define CC(key)     (RT_MAKE_U32(0, USB_HID_CC_PAGE) | (uint16_t)key)
     131 /* Generic Desktop Control usage page (01h). */
     132 #define DC(key)     (RT_MAKE_U32(0, USB_HID_DC_PAGE) | (uint16_t)key)
     133#else
     134 /* Do not pass through Consumer/Generic Desktop Control usage page. */
     135 #define CC(key)     0
     136 #define DC(key)     0
     137#endif
     138
     139/* Untranslated/unused, shouldn't be encountered. */
    132140#define XX(key)     0
    133141
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