Browse Source

It should have been a not iOS.

Dominique Louis 10 months ago
parent
commit
bc08054269

+ 1 - 1
AutoPong/AutoPong.Core/AutoPongGame.cs

@@ -48,7 +48,7 @@ namespace AutoPong
 
         protected override void Update(GameTime gameTime)
         {
-            if (OperatingSystem.IsIOS())
+            if (!OperatingSystem.IsIOS())
             {
                 if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
                     Exit();

+ 2 - 2
NeonShooter/NeonShooter.Core/Game/GameRoot.cs

@@ -55,7 +55,7 @@ namespace NeonShooter
 
 			EntityManager.Add(PlayerShip.Instance);
 
-			if (OperatingSystem.IsIOS())
+			if (!OperatingSystem.IsIOS())
 			{
 				MediaPlayer.IsRepeating = true;
 				MediaPlayer.Play(Sound.Music);
@@ -74,7 +74,7 @@ namespace NeonShooter
 			GameTime = gameTime;
 			Input.Update();
 
-			if (OperatingSystem.IsIOS())
+			if (!OperatingSystem.IsIOS())
 			{
 				// Allows the game to exit
 				if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape))

+ 2 - 2
NeonShooter/NeonShooter.Core/NeonShooterGame.cs

@@ -70,7 +70,7 @@ namespace NeonShooter
 
             EntityManager.Add(PlayerShip.Instance);
 
-            if (OperatingSystem.IsIOS())
+            if (!OperatingSystem.IsIOS())
             {
                 //Known issue that you get exceptions if you use Media PLayer while connected to your PC
                 //See http://social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/c8a243d2-d360-46b1-96bd-62b1ef268c66
@@ -95,7 +95,7 @@ namespace NeonShooter
             GameTime = gameTime;
             Input.Update();
 
-            if (OperatingSystem.IsIOS())
+            if (!OperatingSystem.IsIOS())
             {
                 // Allows the game to exit
                 if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape))

+ 2 - 2
Platformer2D/Platformer2D.Core/PlatformerGame.cs

@@ -99,7 +99,7 @@ namespace Platformer2D
 
             virtualGamePad = new VirtualGamePad(baseScreenSize, globalTransformation, Content.Load<Texture2D>("Sprites/VirtualControlArrow"));
 
-            if (OperatingSystem.IsIOS())
+            if (!OperatingSystem.IsIOS())
             {
                 //Known issue that you get exceptions if you use Media PLayer while connected to your PC
                 //See http://social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/c8a243d2-d360-46b1-96bd-62b1ef268c66
@@ -163,7 +163,7 @@ namespace Platformer2D
             gamePadState = virtualGamePad.GetState(touchState, GamePad.GetState(PlayerIndex.One));
             accelerometerState = Accelerometer.GetState();
 
-            if (OperatingSystem.IsIOS())
+            if (!OperatingSystem.IsIOS())
             {
                 // Exit the game when back is pressed.
                 if (gamePadState.Buttons.Back == ButtonState.Pressed)