Explorar o código

Added mouse handling to HighScoreScreen

Michael Cummings %!s(int64=12) %!d(string=hai) anos
pai
achega
ad60ae5845
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      HoneycombRush/Screens/HighScoreScreen.cs

+ 2 - 1
HoneycombRush/Screens/HighScoreScreen.cs

@@ -156,7 +156,8 @@ namespace HoneycombRush
             PlayerIndex player;
             // Handle keyboard input
             if (input.IsNewKeyPress(Keys.Enter, ControllingPlayer, out player) ||
-                input.IsNewKeyPress(Keys.Space, ControllingPlayer, out player))
+			    input.IsNewKeyPress(Keys.Space, ControllingPlayer, out player) ||
+			    input.IsNewMouseClick(InputState.MouseButton.Left, ControllingPlayer, out player))
             {
                 Exit();
             }