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: UserInteraction/UX.h
- Revision:
- 28:d0b0a64a832d
- Parent:
- 26:6427f09cf8d3
- Child:
- 29:f7a2d2a755ec
--- a/UserInteraction/UX.h Wed May 01 23:01:44 2019 +0000
+++ b/UserInteraction/UX.h Tue May 07 17:50:58 2019 +0000
@@ -69,8 +69,13 @@
void info_screen(N5110 &menu_lcd, int target);
private:
-
+ // Seperate Gamepad has been used in this class because Gamepad obect
+ //from the main class had issues with the CHECK_EVENT Function. The function was not responsive
+ // and could not be resolved and as a result the only suitable solution was to create another object
+ // this explains why a ux object was passed in the Bat class to check if ball was hit or lofted as the
+ // CHECK_EVENT was not responsive in the BAT class
Gamepad batPad;
+
// boolean variable used in get_a_pressed() get_l_pressed() to check if button is pressed
bool _button_pressed;
};