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
Diff: GameEngine/GameEngine.cpp
- Revision:
- 4:7fca66882a00
- Parent:
- 3:59e67155e2dd
- Child:
- 5:df0bf821b4cc
--- a/GameEngine/GameEngine.cpp Thu May 09 05:01:02 2019 +0000
+++ b/GameEngine/GameEngine.cpp Thu May 09 06:17:43 2019 +0000
@@ -33,6 +33,7 @@
void GameEngine::read_input(Gamepad &pad)
{
_j = pad.check_event(Gamepad::Y_PRESSED);
+ _ran = pad.check_event(Gamepad::X_PRESSED);
}
void GameEngine::draw(N5110 &lcd)
@@ -49,5 +50,5 @@
{
_r.update(_j);
- _o1.update();
+ _o1.update(_ran);
}