mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Add early exit to settings menu
Adds pressing both buttons to exit settings menu. #53
This commit is contained in:
@@ -150,7 +150,14 @@ void ProcessUI() {
|
|||||||
//The user pressed the button to breakout of the settings help prompt
|
//The user pressed the button to breakout of the settings help prompt
|
||||||
StatusFlags = 0;
|
StatusFlags = 0;
|
||||||
} else {
|
} else {
|
||||||
if (Buttons & BUT_B) {
|
if (Buttons == (BUT_A | BUT_B)) {
|
||||||
|
|
||||||
|
//Both buttons were pressed, exit back to the startup screen
|
||||||
|
settingsPage = 0; //reset
|
||||||
|
operatingMode = STARTUP; //reset back to the startup
|
||||||
|
saveSettings(); //Save the settings
|
||||||
|
|
||||||
|
} else if (Buttons & BUT_B) {
|
||||||
//A key iterates through the menu
|
//A key iterates through the menu
|
||||||
if (settingsPage == SETTINGSOPTIONSCOUNT) {
|
if (settingsPage == SETTINGSOPTIONSCOUNT) {
|
||||||
//Roll off the end
|
//Roll off the end
|
||||||
|
|||||||
Reference in New Issue
Block a user