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: Menu/Menu.cpp
- Revision:
- 27:c920c5ec31af
- Parent:
- 26:4253656c0755
- Child:
- 29:bdc4138b5171
--- a/Menu/Menu.cpp Fri May 03 09:33:34 2019 +0000 +++ b/Menu/Menu.cpp Sat May 04 13:26:50 2019 +0000 @@ -75,9 +75,9 @@ // Define the finite state machine for three different states: running game, // display -// menu and display controls, {ouput,{a,b,c,d}} where a,b,c,d are inputs. -// The ouputs have been assigned to 0,1,2. -// There are four different relevent input combinations that have been assigned +// menu and display controls, {output,{a,b,c,d}} where a,b,c,d are inputs. +// The outputs have been assigned to 0,1,2. +// There are four different relevant input combinations that have been assigned // to: 0,1,2,3. State _fsm[3] = { {0,{0,1,0,0}}, @@ -85,7 +85,7 @@ {2,{2,1,2,0}} }; -// Constructor and distructor. +// Constructor and destructor. Menu::Menu() {} Menu::~Menu() {} @@ -111,7 +111,7 @@ } void Menu::output(N5110 &lcd, Gamepad &gamepad) { - // 0, 1 and 2 have been assigned to the output of each state respectivley. + // 0, 1 and 2 have been assigned to the output of each state respectively. if (_output == 0) { run_game(lcd, gamepad); } else if (_output == 1) { @@ -122,7 +122,7 @@ } void Menu::set_input(bool start, bool back, bool x) { - // 0, 1, 2, 3 have been assigned to each relevent input combination. + // 0, 1, 2, 3 have been assigned to each relevant input combination. if (!start && !back && !x) { // Nothing is pressed. _menu_input = 0; } else if (!start && back) { // Only back is pressed.