VirtualBox

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


Ignore:
Timestamp:
May 12, 2009 12:27:21 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47192
Message:

Main and Devices: absolute mouse support: do not send a mouse movement event if only the button state has changed

File:
1 edited

Legend:

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

    r12977 r19614  
    779779    s->mouse_dy -= dy;
    780780    s->mouse_dz += dz;
     781#ifndef VBOX
    781782    /* XXX: SDL sometimes generates nul events: we delete them */
    782783    if (s->mouse_dx == 0 && s->mouse_dy == 0 && s->mouse_dz == 0 &&
    783784        s->mouse_buttons == buttons_state)
    784785        return;
     786#else
     787    /* This issue does not affect VBox, and under some circumstances (which?)
     788     * we may wish to send null events to make mouse integration work. */
     789#endif
    785790    s->mouse_buttons = buttons_state;
    786791
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