예제 #1
0
        static void ProcessMouseMotionEvent(Sdl2NativeWindow window, MouseMotionEvent ev)
        {
            float scale = window.ClientSize.Width / (float)window.Size.Width;

            window.OnMouseMove(
                (int)Math.Round(ev.X * scale),
                (int)Math.Round(ev.Y * scale));
        }
 public void ProcessMouseEvent(MouseMotionEvent motion)
 {
     state.X += motion.Xrel;
     state.Y += motion.Yrel;
 }
예제 #3
0
 static void ProcessMouseMotionEvent(Sdl2NativeWindow window, MouseMotionEvent ev)
 {
     float scale = window.ClientSize.Width / (float)window.Size.Width;
     window.OnMouseMove(
         (int)Math.Round(ev.X * scale),
         (int)Math.Round(ev.Y * scale));
 }
예제 #4
0
 public void ProcessMouseEvent(MouseMotionEvent motion)
 {
     state.X += motion.Xrel;
     state.Y += motion.Yrel;
 }
예제 #5
0
 public void ProcessMouseEvent(MouseMotionEvent motion)
 {
     state.X         += motion.Xrel;
     state.Y         += motion.Yrel;
     mice[0].Position = new Point(motion.X, motion.Y);
 }
예제 #6
0
 public void ProcessMouseEvent(MouseMotionEvent motion)
 {
     state.X += motion.Xrel;
     state.Y += motion.Yrel;
     mice[0].Position = new Point(motion.X, motion.Y);
 }