mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Small UI event processing optimization. Helps debugging more than performance.
This commit is contained in:
parent
26f0117421
commit
7e6ef060c6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user