VirtualBox

Changeset 27917 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Mar 31, 2010 4:50:43 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59609
Message:

UsbKbd: Really ignore key repeat events.

File:
1 edited

Legend:

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

    r27915 r27917  
    775775    uint8_t     u8HidCode;
    776776    int         fKeyDown;
     777    bool        fHaveEvent = true;
    777778    unsigned    i;
    778779
     
    792793        if (fKeyDown)
    793794        {
    794             bool fAlready = false;
    795795            for (i = 0; i < RT_ELEMENTS(pReport->aKeys); ++i)
    796796            {
     
    798798                {
    799799                    /* Skip repeat events. */
    800                     fAlready = true;
     800                    fHaveEvent = false;
    801801                    break;                             
    802802                }
    803803            }
    804804
    805             if (!fAlready)
     805            if (fHaveEvent)
    806806            {
    807807                for (i = 0; i < RT_ELEMENTS(pReport->aKeys); ++i)
     
    850850
    851851        /* Send a report if the host is already waiting for it. */
    852         usbHidSendReport(pThis);
     852        if (fHaveEvent)
     853            usbHidSendReport(pThis);
    853854    }
    854855
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