public MouseMotionEventArgs(long lParam) { x = (int)lParam & 0x0000ffff; if(x > 10000) { x = 0; } y = (int)(lParam >> 16) & 0x0000ffff; if(y > 10000) { y = 0; } }