Sunday, November 19, 2006

Spacewar (Windows) Full Screen Tip

Just a tip, you can toggle between full screen and windowed mode of the Spacewar demo by hitting the Alt-Enter combo.

Don't think there is any help documentation published but you can figure this out by looking at the following code fragment from SpacewarGame.cs:



protected override void Update(GameTime gameTime)
{
keyState = Keyboard.GetState();
XInputHelper.Update(keyState);

if ((keyState.IsKeyDown(Keys.RightAlt) ||
keyState.IsKeyDown(Keys.LeftAlt)) &&
keyState.IsKeyDown(Keys.Enter) &&
!justWentFullScreen)
{
ToggleFullScreen();
justWentFullScreen = true;
}
}


Btw, I am looking at the windows code for Spacewar. So whatever Spacewar post will refer to just that.

No comments: