Skip to content

Commit

Permalink
Windows Phone and Android can have a keyboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
KonajuGames committed Feb 17, 2012
1 parent 7a0bb92 commit 5246c70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion MonoGame.StarterKits.iOS.sln
Expand Up @@ -107,7 +107,7 @@ Global
{91CF4A04-9FDC-471D-AED0-D8F057068230} = {73DDE8DB-4345-43F2-9371-0A19FC669324}
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = iOS\AlienGame\AlienGame.csproj
StartupItem = iOS\Platformer\Platformer.csproj
Policies = $0
$0.TextStylePolicy = $1
$1.RemoveTrailingWhitespace = True
Expand Down
8 changes: 2 additions & 6 deletions iOS/Platformer/PlatformerGame.cs
Expand Up @@ -133,10 +133,8 @@ protected override void Update(GameTime gameTime)
private void HandleInput()
{
// get all of our input states
#if !WINDOWS_PHONE && !ANDROID && !IPHONE
keyboardState = Keyboard.GetState();
#endif
#if !IPHONE
keyboardState = Keyboard.GetState();
gamePadState = GamePad.GetState(PlayerIndex.One);
#endif
touchState = TouchPanel.GetState();
Expand All @@ -148,10 +146,8 @@ private void HandleInput()
Exit();
#endif
bool continuePressed =
#if !WINDOWS_PHONE && !ANDROID && !IPHONE
keyboardState.IsKeyDown(Keys.Space) ||
#endif
#if !IPHONE
keyboardState.IsKeyDown(Keys.Space) ||
gamePadState.IsButtonDown(Buttons.A) ||
#endif
touchState.AnyTouch();
Expand Down

0 comments on commit 5246c70

Please sign in to comment.