VirtualBox

Changeset 50962 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Apr 3, 2014 1:58:47 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93119
Message:

Send HID usage codes rather than XT scan codes to keyboard devices, with conversion in driver. See #6026.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmifs.h

    r50848 r50962  
    399399{
    400400    /**
    401      * Puts a keyboard event.
     401     * Puts a scan code based keyboard event.
    402402     *
    403403     * This is called by the source of keyboard events. The event will be passed up
     
    408408     *
    409409     * @param   pInterface          Pointer to this interface structure.
    410      * @param   u8KeyCode           The keycode to queue.
    411      */
    412     DECLR3CALLBACKMEMBER(int, pfnPutEvent,(PPDMIKEYBOARDPORT pInterface, uint8_t u8KeyCode));
     410     * @param   u8ScanCode          The scan code to queue.
     411     */
     412    DECLR3CALLBACKMEMBER(int, pfnPutEventScan,(PPDMIKEYBOARDPORT pInterface, uint8_t u8KeyCode));
     413
     414    /**
     415     * Puts a USB HID usage ID based keyboard event.
     416     *
     417     * This is called by the source of keyboard events. The event will be passed up
     418     * until the topmost driver, which then calls the registered event handler.
     419     *
     420     * @returns VBox status code.  Return VERR_TRY_AGAIN if you cannot process the
     421     *          event now and want it to be repeated at a later point.
     422     *
     423     * @param   pInterface          Pointer to this interface structure.
     424     * @param   u32UsageID          The HID usage code event to queue.
     425     */
     426    DECLR3CALLBACKMEMBER(int, pfnPutEventHid,(PPDMIKEYBOARDPORT pInterface, uint32_t u32UsageID));
    413427} PDMIKEYBOARDPORT;
    414428/** PDMIKEYBOARDPORT interface ID. */
Note: See TracChangeset for help on using the changeset viewer.

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