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; }
public void ProcessMouseEvent(MouseMotionEvent motion) { state.X += motion.Xrel; state.Y += motion.Yrel; mice[0].Position = new Point(motion.X, motion.Y); }