public void mouseReleased(object sender, RsMouseInputEventArgs e) { lock (InputSyncObj) { idleTime = 0; mouseButton = 0; } }
public void mousePressed(object sender, RsMouseInputEventArgs e) { int i = e.ScreenCoordX; int j = e.ScreenCoordY; idleTime = 0; eventClickX = i; eventClickY = j; eventClickTime = TimeService.CurrentTimeInMilliseconds(); if (e.IsRightClick) { eventMouseButton = 2; mouseButton = 2; } else { eventMouseButton = 1; mouseButton = 1; } }