"Cope, Christopher Edward" ccope3@utk.edu wrote:
@@ -1638,16 +1636,14 @@ static void X11DRV_RawMotion( XGenericEventCookie *xev ) if (XIMaskIsSet( event->valuators.mask, class->number )) { double val = *values++;
if (class->label == x11drv_atom( Rel_X ) ||
(!class->label && class->number == 0 && class->mode == XIModeRelative))
if (class->label == x11drv_atom( Rel_X ) || class->mode == XIModeRelative) { input.u.mi.dx = dx = val; if (class->min < class->max) input.u.mi.dx = val * (virtual_screen_rect.right - virtual_screen_rect.left) / (class->max - class->min); }
else if (class->label == x11drv_atom( Rel_Y ) ||
(!class->label && class->number == 1 && class->mode == XIModeRelative))
else if (class->label == x11drv_atom( Rel_Y ) || class->mode == XIModeRelative) { input.u.mi.dy = dy = val; if (class->min < class->max)
How is this supposed to distinguish motion in X and Y direction?