mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Small UI event processing optimization. Helps debugging more than performance.
This commit is contained in:
1 parent
26f0117421
commit
7e6ef060c6
1 file changed
+3
@@ -72,6 +72,9 @@ void Event::Add(std::function<EventReturn(EventParams&)> func) {
|
||||
|
||||
// Call this from input thread or whatever, it doesn't matter
|
||||
void Event::Trigger(EventParams &e) {
|
||||
if (handlers_.empty()) {
|
||||
return;
|
||||
}
|
||||
EventTriggered(this, e);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user