mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 08:55:45 +00:00
COMMON: move mappedEvents declaration out of for loop
This commit is contained in:
parent
40e89381ee
commit
3b466e65be
@ -71,6 +71,7 @@ EventDispatcher::~EventDispatcher() {
|
||||
|
||||
void EventDispatcher::dispatch() {
|
||||
Event event;
|
||||
List<Event> mappedEvents;
|
||||
|
||||
dispatchPoll();
|
||||
|
||||
@ -91,7 +92,7 @@ void EventDispatcher::dispatch() {
|
||||
assert(event.type != EVENT_CUSTOM_ENGINE_ACTION_END);
|
||||
|
||||
for (List<MapperEntry>::iterator m = _mappers.begin(); m != _mappers.end(); ++m) {
|
||||
List<Event> mappedEvents;
|
||||
mappedEvents.clear();
|
||||
if (!m->mapper->mapEvent(event, mappedEvents))
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user