VirtualBox

Changeset 33075 in vbox for trunk/src


Ignore:
Timestamp:
Oct 12, 2010 3:20:06 PM (14 years ago)
Author:
vboxsync
Message:

Main: also support absolute mouse events

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r33061 r33075  
    298298
    299299def printMouseEvent(ctx, mev):
    300     print "Mouse: x=%d y=%d z=%d" %(mev.x, mev.y, mev.z)
     300    print "Mouse : absolute=%d x=%d y=%d z=%d buttons=%x" %(mev.absolute, mev.x, mev.y, mev.z, mev.buttons)
    301301
    302302def printKbdEvent(ctx, kev):
  • trunk/src/VBox/Main/MouseImpl.cpp

    r33061 r33075  
    333333                            vrc);
    334334        mLastButtons = fButtons;
    335 #ifndef VBOXBFE_WITHOUT_COM
    336 #if 1
    337         mMouseEvent.reinit(VBoxEventType_OnGuestMouseEvent, dx, dy, dz, dw, fButtons);
    338         mMouseEvent.fire(0);
    339 #endif
    340 #endif
    341335    }
    342336    return S_OK;
     
    376370                            vrc);
    377371        mLastButtons = fButtons;
     372
    378373    }
    379374    return S_OK;
     
    485480    rc = reportRelEventToMouseDev(dx, dy, dz, dw, fButtons);
    486481
     482#ifndef VBOXBFE_WITHOUT_COM
     483    mMouseEvent.reinit(VBoxEventType_OnGuestMouseEvent, false, dx, dy, dz, dw, fButtons);
     484    mMouseEvent.fire(0);
     485#endif
     486
    487487    return rc;
    488488}
     
    578578    rc = reportAbsEvent(mouseXAbs, mouseYAbs, dz, dw, fButtons,
    579579                        mouseCaps & VMMDEV_MOUSE_GUEST_USES_EVENT);
     580
     581#ifndef VBOXBFE_WITHOUT_COM
     582    mMouseEvent.reinit(VBoxEventType_OnGuestMouseEvent, true, mouseXAbs, mouseYAbs, dz, dw, fButtons);
     583    mMouseEvent.fire(0);
     584#endif
    580585
    581586    return rc;
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r33064 r33075  
    1497914979  <interface
    1498014980    name="IGuestMouseEvent" extends="IReusableEvent"
    14981     uuid="2ab6f43c-a111-4520-be63-5d560e8eb463"
     14981    uuid="1f85d35c-c524-40ff-8e98-307000df0992"
    1498214982    wsmap="managed" autogen="VBoxEvent" id="OnGuestMouseEvent"
    1498314983    >
     
    1498614986   </desc>
    1498714987
     14988   <attribute name="absolute" type="boolean" readonly="yes">
     14989     <desc>
     14990       If this event is relative or absolute.
     14991     </desc>
     14992   </attribute>
     14993
    1498814994   <attribute name="x" type="long" readonly="yes">
    1498914995     <desc>
    14990        New X position.
     14996       New X position, or X delta.
    1499114997     </desc>
    1499214998   </attribute>
     
    1499415000   <attribute name="y" type="long" readonly="yes">
    1499515001     <desc>
    14996        New Y position.
     15002       New Y position, or Y delta.
    1499715003     </desc>
    1499815004   </attribute>
     
    1500015006   <attribute name="z" type="long" readonly="yes">
    1500115007     <desc>
    15002        New Z position.
     15008       Z delta.
    1500315009     </desc>
    1500415010   </attribute>
     
    1500615012   <attribute name="w" type="long" readonly="yes">
    1500715013     <desc>
    15008        New W position.
     15014       W delta.
    1500915015     </desc>
    1501015016   </attribute>
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