mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-09 14:13:34 +02:00
ScreenManager: Add support for direct async touch events
This commit is contained in:
@@ -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