Ejemplo n.º 1
0
        internal static void Update(IGenericWindow window, float deltatime)
        {
            Deltatime.UpdateDelta = deltatime;
            Mouse.SetState();
            Keyboard.SetStage();
            var context = new UpdateContext
            {
                Window = window,

                Scene = window.CurrentScene
            };

            if (Keyboard.IsDown(Key.AltLeft) && Keyboard.IsDown(Key.F4))
            {
                window.Close();
            }

            Stopwatch.PerformTicks(context);
            window.CurrentScene?.Update(context);
            window.Update(context);
        }