예제 #1
0
 public void mouseReleased(object sender, RsMouseInputEventArgs e)
 {
     lock (InputSyncObj)
     {
         idleTime    = 0;
         mouseButton = 0;
     }
 }
예제 #2
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;
            }
        }