Changeset 97558 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Nov 15, 2022 10:04:54 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154589
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/MouseImpl.cpp
r96909 r97558 661 661 { 662 662 HRESULT hrc; 663 /** If we are using the VMMDev to report absolute position but without 664 * VMMDev IRQ support then we need to send a small "jiggle" to the emulated 665 * relative mouse device to alert the guest to changes. */ 666 LONG cJiggle = 0; 667 663 668 if (i_vmmdevCanAbs()) 664 669 { 665 /*666 * If we are using the VMMDev to report absolute position but without667 * VMMDev IRQ support then we need to send a small "jiggle" to the668 * emulated relative mouse device to alert the guest to changes.669 */670 LONG cJiggle = 0;671 672 670 /* 673 671 * Send the absolute mouse position to the VMM device. … … 678 676 cJiggle = !fUsesVMMDevEvent; 679 677 } 680 681 /* 682 * Since VMMDev does not deal with mouse buttons state, also 683 * send relative or absolute pointing event to emulated mouse 684 * device once it supports it. 685 * 686 * Relative pointing events are sent to: PS/2 Mouse, USB Mouse, 687 * combination of both (PS/2 and USB Mouse). 688 * 689 * Absolute ones to: USB Tablet, USB Multi-Touch Tablet, 690 * USB MT TouchScreen and TouchPad. 691 * 692 * IMPORTANT: Do not send relative event to devices which can 693 * do both relative and absolute pointing since it may result 694 * in unexpected behaviour. 695 * 696 * r=bird: Not entirely convinced this is a correct fix. 697 * 698 * See @bugref{10285} for background and more theories. 699 */ 700 if (!i_deviceCanAbs()) 701 hrc = i_reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons); 702 else 703 hrc = i_reportAbsEventToMouseDev(x, y, dz, dw, fButtons); 678 hrc = i_reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons); 704 679 } 705 680 else
Note:
See TracChangeset
for help on using the changeset viewer.