VirtualBox

Changeset 47724 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 14, 2013 1:12:05 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Mouse handler: Some multi-touch logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r47672 r47724  
    912912
    913913    /* Pass all multi-touch events into guest: */
    914     int i = 0;
     914    int iTouchPointIndex = 0;
    915915    foreach (const QTouchEvent::TouchPoint &touchPoint, pTouchEvent->touchPoints())
    916916    {
     
    932932
    933933        /* Pass absolute touch-point data: */
    934         LogRelFlow(("UIMouseHandler::multiTouchEvent: Origin: %dx%d, State: %d\n",
    935                     currentTouchPoint.x(), currentTouchPoint.y(), iTouchPointState));
    936 
    937         contacts[i++] = RT_MAKE_U64_FROM_U16((uint16_t)currentTouchPoint.x() + 1,
    938                                              (uint16_t)currentTouchPoint.y() + 1,
    939                                              RT_MAKE_U16(touchPoint.id(), iTouchPointState),
    940                                              0);
     934        LogRelFlow(("UIMouseHandler::multiTouchEvent: Origin: %dx%d, Id: %d, State: %d\n",
     935                    currentTouchPoint.x(), currentTouchPoint.y(), touchPoint.id(), iTouchPointState));
     936
     937        contacts[iTouchPointIndex] = RT_MAKE_U64_FROM_U16((uint16_t)currentTouchPoint.x() + 1,
     938                                                          (uint16_t)currentTouchPoint.y() + 1,
     939                                                          RT_MAKE_U16(touchPoint.id(), iTouchPointState),
     940                                                          0);
     941
     942        LogRelFlow(("UIMouseHandler::multiTouchEvent: %RX64\n", contacts[iTouchPointIndex]));
     943
     944        ++iTouchPointIndex;
    941945    }
    942946
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