diff --git a/Game1.cs b/Game1.cs
index 1c4d5cf..507bcdd 100644
--- a/Game1.cs
+++ b/Game1.cs
@@ -969,5 +969,15 @@ namespace WindowsPhoneSpeedyBlupi
decor.MemorizeDoors(gameData);
gameData.Write();
}
+ //public void SetFullScreen(bool isFullScreen)
+ //{
+ // this.graphics.IsFullScreen = isFullScreen;
+ // graphics.ToggleFullScreen();
+ //}
+ public void ToggleFullScreen()
+ {
+ this.graphics.ToggleFullScreen();
+ }
+ public bool IsFullScreen() { return this.graphics.IsFullScreen; }
}
}
\ No newline at end of file
diff --git a/InputPad.cs b/InputPad.cs
index 0d73c0b..4f96539 100644
--- a/InputPad.cs
+++ b/InputPad.cs
@@ -277,7 +277,6 @@ namespace WindowsPhoneSpeedyBlupi
}
}
-
MouseState mouseState = Mouse.GetState();
if (mouseState.LeftButton == ButtonState.Pressed)
{
@@ -297,6 +296,11 @@ namespace WindowsPhoneSpeedyBlupi
if (newState.IsKeyDown(Keys.Left)) touchesOrClicks.Add(createTinyPoint(-1, Misc.keyboardPressToInt(KeyboardPress.Left)));
if (newState.IsKeyDown(Keys.Space)) touchesOrClicks.Add(createTinyPoint(-1, Misc.keyboardPressToInt(KeyboardPress.Space)));
}
+ if (newState.IsKeyDown(Keys.F11))
+ {
+ game1.ToggleFullScreen ();
+ Debug.WriteLine("F11 was pressed.");
+ }
Boolean keyPressedUp = false;
Boolean keyPressedDown = false;
diff --git a/Speedy Blupi.csproj b/Speedy Blupi.csproj
index 943b062..80ea15f 100644
--- a/Speedy Blupi.csproj
+++ b/Speedy Blupi.csproj
@@ -98,6 +98,7 @@
+
PreserveNewest
@@ -335,10 +336,10 @@
- icon.ico
+ Icon.ico
- icon.bmp
+ Icon.bmp