Lines Matching refs:xmotion
61 deltax = xevent->xmotion.x - mouse_last.x;
62 deltay = xevent->xmotion.y - mouse_last.y;
66 mouse_last.x = xevent->xmotion.x;
67 mouse_last.y = xevent->xmotion.y;
70 if ( (xevent->xmotion.x < MOUSE_FUDGE_FACTOR) ||
71 (xevent->xmotion.x > (w-MOUSE_FUDGE_FACTOR)) ||
72 (xevent->xmotion.y < MOUSE_FUDGE_FACTOR) ||
73 (xevent->xmotion.y > (h-MOUSE_FUDGE_FACTOR)) ) {
76 deltax = xevent->xmotion.x - mouse_last.x;
77 deltay = xevent->xmotion.y - mouse_last.y;
81 mouse_last.x = xevent->xmotion.x;
82 mouse_last.y = xevent->xmotion.y;
91 if ( (xevent->xmotion.x >
93 (xevent->xmotion.x <
95 (xevent->xmotion.y >
97 (xevent->xmotion.y <
102 printf("Lost mouse motion: %d,%d\n", xevent->xmotion.x, xevent->xmotion.y);