public override void Update(TimeSpan elapsedTime) { if (Core.Settings.Fullscreen) { InputEngine.SetMousePosition(Cursor.Position.X, Cursor.Position.Y); } int x = 0, y = 0, dX = 0, dY = 0, roll = 0; bool button1 = false, button2 = false, button3 = false, button4 = false; InputEngine.GetMouseState(ref dX, ref dY, ref button1, ref button2, ref button3, ref button4, ref roll); InputEngine.GetMousePosition(ref x, ref y); position = new Vector2(x, y); Movement = new Vector2(dX, dY); LeftButton = LeftButton.NextState(button1, elapsedTime); RightButton = RightButton.NextState(button2, elapsedTime); MiddleButton = MiddleButton.NextState(button3, elapsedTime); WheelTurns = roll; }