Changeset 95396 in vbox for trunk/src/VBox
- Timestamp:
- Jun 27, 2022 4:07:40 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r94189 r95396 335 335 336 336 def printMouseEvent(_ctx, mev): 337 print("Mouse 337 print("Mouse: mode=%d x=%d y=%d z=%d w=%d buttons=%x" % (mev.mode, mev.x, mev.y, mev.z, mev.w, mev.buttons)) 338 338 339 339 def printKbdEvent(ctx, kev): … … 341 341 342 342 def printMultiTouchEvent(ctx, mtev): 343 print("MultiTouch : contacts=%d time=%d" % (mtev.contactCount, mtev.scanTime)) 343 print("MultiTouch: %s contacts=%d time=%d" \ 344 % ("touchscreen" if mtev.isTouchScreen else "touchpad", mtev.contactCount, mtev.scanTime)) 344 345 xPositions = ctx['global'].getArray(mtev, 'xPositions') 345 346 yPositions = ctx['global'].getArray(mtev, 'yPositions') -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r95369 r95396 1201 1201 bool fTouchScreen = (pTouchEvent->device()->type() == QTouchDevice::TouchScreen); 1202 1202 #endif 1203 /* Compatibility with previous behavior. If there is no touchpad configured 1204 * then treat all multitouch events as touchscreen ones: */ 1205 fTouchScreen |= !uisession()->isMouseSupportsTouchPad(); 1203 1206 1204 1207 if (fTouchScreen)
Note:
See TracChangeset
for help on using the changeset viewer.