Code: Select all
rc = i_reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons);
/* Since VMMDev does not deal with mouse buttons state, also
* send relative or absolute pointing event to emulated mouse
* device once it supports it.
*
* Relative pointing events are sent to: PS/2 Mouse, USB Mouse,
* combination of both (PS/2 and USB Mouse).
*
* Absolute ones to: USB Tablet, USB Multi-Touch Tablet,
* USB MT TouchScreen and TouchPad.
*
* IMPORTANT: Avoid sending relative event to devices which can
* do both relative and absolute pointing since it will result
* in misbehavior. */
if (!i_deviceCanAbs())
rc = i_reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons);
else
rc = i_reportAbsEventToMouseDev(x, y, dz, dw, fButtons);