Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17ajf by
Diff: Game/Game.cpp
- Revision:
- 22:0a474f074553
- Parent:
- 21:62d2b5b73160
- Child:
- 27:2ed9e3c9f4e9
--- a/Game/Game.cpp Wed Apr 03 20:33:27 2019 +0000 +++ b/Game/Game.cpp Thu Apr 04 07:08:39 2019 +0000 @@ -3,6 +3,7 @@ #include "Engine.h" #include "MenuManager.h" #include "GameOverMenu.h" +#include "PausedMenu.h" #include "Prefs.h" Game::Game(Difficulty difficulty) { @@ -60,6 +61,9 @@ if (Input::buttonHit(Input::DOWN)) { dropCurrentTetromino(); } + if (Input::buttonHit(Input::START)) { + Menus::MenuManager::add(new Menus::PausedMenu()); + } } void Game::addScore(int rowsCleared) {