Changeset 47804 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 16, 2013 12:26:40 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 88065
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r47774 r47804 20596 20596 <enum 20597 20597 name="GuestMouseEventMode" 20598 uuid=" 5eff2374-9a4e-4c47-aaee-8815e5ce58c2"20598 uuid="4b500146-ebba-4b7c-bc29-69c2d57a5caf" 20599 20599 > 20600 20600 … … 20618 20618 </desc> 20619 20619 </const> 20620 20621 <const name="MultiTouch" value="2">20622 <desc>20623 Multi-touch event.20624 </desc>20625 </const>20626 20620 </enum> 20627 20621 20628 20622 <interface 20629 20623 name="IGuestMouseEvent" extends="IReusableEvent" 20630 uuid="1 f85d35c-c524-40ff-8e98-307000df0992"20624 uuid="179f8647-319c-4e7e-8150-c5837bd265f6" 20631 20625 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse" 20632 20626 > … … 20665 20659 </attribute> 20666 20660 20667 <attribute name="contact" type="long" readonly="yes">20668 <desc>20669 The multi-touch contact identifier. This remains valid as long as a20670 touch is in progress and can and should be re-used after a touch has20671 terminated (see @a buttons).20672 </desc>20673 </attribute>20674 20675 20661 <attribute name="buttons" type="long" readonly="yes"> 20676 20662 <desc> 20677 Button state bitmask. Multi-touch events should have the first bit set 20678 as long as the touch is in progress and terminate with an event with no 20679 bits set. 20663 Button state bitmask. 20680 20664 </desc> 20681 20665 </attribute> -
trunk/src/VBox/Main/include/MouseImpl.h
r47571 r47804 128 128 129 129 void fireMouseEvent(bool fAbsolute, LONG x, LONG y, LONG dz, LONG dw, 130 LONG cContact, LONGfButtons);130 LONG fButtons); 131 131 }; 132 132 -
trunk/src/VBox/Main/src-client/MouseImpl.cpp
r47798 r47804 118 118 AssertComRCReturnRC(rc); 119 119 mMouseEvent.init(mEventSource, VBoxEventType_OnGuestMouse, 120 0, 0, 0, 0, 0 );120 0, 0, 0, 0, 0, 0); 121 121 122 122 /* Confirm a successful initialization */ … … 470 470 471 471 void Mouse::fireMouseEvent(bool fAbsolute, LONG x, LONG y, LONG dz, LONG dw, 472 LONG cContact, LONGfButtons)472 LONG fButtons) 473 473 { 474 474 /* If mouse button is pressed, we generate new event, to avoid reusable events coalescing and thus 475 475 dropping key press events */ 476 GuestMouseEventMode_T mode = fAbsolute? GuestMouseEventMode_Absolute: GuestMouseEventMode_Relative; 476 477 if (fButtons != 0) 477 478 { 478 479 VBoxEventDesc evDesc; 479 evDesc.init(mEventSource, VBoxEventType_OnGuestMouse, fAbsolute, x, y,480 dz, dw, cContact,fButtons);480 evDesc.init(mEventSource, VBoxEventType_OnGuestMouse, mode, x, y, 481 dz, dw, fButtons); 481 482 evDesc.fire(0); 482 483 } 483 484 else 484 485 { 485 mMouseEvent.reinit(VBoxEventType_OnGuestMouse, fAbsolute, x, y, dz, dw,486 cContact,fButtons);486 mMouseEvent.reinit(VBoxEventType_OnGuestMouse, mode, x, y, dz, dw, 487 fButtons); 487 488 mMouseEvent.fire(0); 488 489 } … … 519 520 rc = reportRelEventToMouseDev(dx, dy, dz, dw, fButtonsAdj); 520 521 521 fireMouseEvent(false, dx, dy, dz, dw, 0,fButtons);522 fireMouseEvent(false, dx, dy, dz, dw, fButtons); 522 523 523 524 return rc; … … 633 634 & VMMDEV_MOUSE_NEW_PROTOCOL)); 634 635 635 fireMouseEvent(true, x, y, dz, dw, 0,fButtons);636 fireMouseEvent(true, x, y, dz, dw, fButtons); 636 637 } 637 638 … … 795 796 rc = reportMultiTouchEventToDevice(cContacts, cContacts? pau64Contacts: NULL, (uint32_t)aScanTime); 796 797 797 // @todo Implement . Maybeusing a new TouchEvent rather than extending the mouse event.798 // @todo Implement using a new TouchEvent rather than extending the mouse event. 798 799 // fireMouseEvent(true, x, y, 0, 0, cContact, contactState); 799 800 }
Note:
See TracChangeset
for help on using the changeset viewer.