Esempio n. 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));
        }
Esempio n. 2
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));
 }