GameWindowStates test: Added support for jumping two WindowStates with one keystroke.

This commit is contained in:
kanato 2009-01-14 19:52:27 +00:00
parent 083caef1c1
commit 180da6c5dd

View file

@ -82,6 +82,10 @@ namespace Examples.Tests
if (sender[Key.ShiftLeft] || sender[Key.ShiftRight]) if (sender[Key.ShiftLeft] || sender[Key.ShiftRight])
WindowState = GetPrevious(WindowState); WindowState = GetPrevious(WindowState);
else if (sender[Key.AltLeft] || sender[Key.AltRight])
WindowState = GetNext(GetNext(WindowState));
else if (sender[Key.ControlLeft] || sender[Key.ControlRight])
WindowState = GetPrevious(GetPrevious(WindowState));
else else
WindowState = GetNext(WindowState); WindowState = GetNext(WindowState);