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:
@@ -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();
|
||||
}
|
||||
|
||||
/*====================================
|
||||
|
||||
Reference in New Issue
Block a user