mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-28 20:58:35 +01:00
ScreenManager: Add support for direct async touch events
This commit is contained in:
1 parent
42fcb79e87
commit
1968e8c529
3 files changed
+18
-1
No files matched your search
@@ -54,6 +54,18 @@ void ScreenManager::update(InputState &input) {
|
||||
}
|
||||
}
|
||||
|
||||
void ScreenManager::touch(int pointer, float x, float y, double time, TouchEvent event)
|
||||
{
|
||||
if (dialog_.size()) {
|
||||
dialog_.back()->touch(pointer, x, y, time, event);
|
||||
return;
|
||||
}
|
||||
if (currentScreen_)
|
||||
{
|
||||
currentScreen_->touch(pointer, x, y, time, event);
|
||||
}
|
||||
}
|
||||
|
||||
void ScreenManager::render() {
|
||||
if (dialog_.size()) {
|
||||
dialog_.back()->render();
|
||||
|
||||
Reference in new issue
Block a user