VirtualBox

Changeset 47233 in vbox


Ignore:
Timestamp:
Jul 18, 2013 1:36:00 PM (12 years ago)
Author:
vboxsync
Message:

Main/MouseImpl: send buttons through the absolute device when there is movement too.

File:
1 edited

Legend:

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

    r47226 r47233  
    437437                              bool fUsesVMMDevEvent)
    438438{
    439     HRESULT rc;
     439    HRESULT rc = S_OK;
    440440    /** If we are using the VMMDev to report absolute position but without
    441441     * VMMDev IRQ support then we need to send a small "jiggle" to the emulated
     
    454454        }
    455455        else
    456             rc = reportAbsEventToMouseDev(x, y, 0, 0, 0);
    457     }
    458     rc = reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons);
     456        {
     457            rc = reportAbsEventToMouseDev(x, y, 0, 0, fButtons);
     458            fButtons = 0;
     459        }
     460    }
     461    if (SUCCEEDED(rc))
     462        rc = reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons);
    459463
    460464    mcLastX = x;
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