1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Implemented layer system for painting and events

The long term goal is to be able to use a single event loop regardless
of which submenu or alternative mode is active.
This commit is contained in:
Maarten ter Huurne
2013-08-06 01:55:32 +02:00
parent 074668336e
commit 6d868a895a
8 changed files with 174 additions and 44 deletions

View File

@@ -235,7 +235,7 @@ bool Menu::handleButtonPress(InputManager::Button button) {
}
}
void Menu::handleTS() {
bool Menu::handleTouchscreen(Touchscreen &ts) {
ConfIntHash &skinConfInt = gmenu2x->skinConfInt;
const int topBarHeight = skinConfInt["topBarHeight"];
const int screenWidth = gmenu2x->resX;
@@ -253,6 +253,7 @@ void Menu::handleTS() {
setSectionIndex((iSection + numSections + i) % numSections);
ts.setHandled();
return true;
}
const uint linksPerPage = linkColumns * linkRows;
@@ -266,6 +267,7 @@ void Menu::handleTS() {
}
i++;
}
return ts.handled();
}
/*====================================