Преглед на файлове

Added mouse handling to LevelOverScreen

Michael Cummings преди 12 години
родител
ревизия
6a85061269
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      HoneycombRush/Screens/LevelOverScreen.cs

+ 2 - 1
HoneycombRush/Screens/LevelOverScreen.cs

@@ -159,7 +159,8 @@ namespace HoneycombRush
             }
             }
             // Handle keyboard
             // Handle keyboard
             else if (input.IsNewKeyPress(Keys.Enter, ControllingPlayer, out player) ||
             else 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))
             {
             {
                 StartNewLevelOrExit(input);
                 StartNewLevelOrExit(input);
             }
             }