diff options
author | Tarek Soliman | 2012-02-17 15:18:38 -0600 |
---|---|---|
committer | Tarek Soliman | 2012-02-20 06:49:22 -0600 |
commit | c0b04fdcaa0d357a0565a16ea7be74994e55da07 (patch) | |
tree | 3d2d6ae051c3b9c6e3fb8a5748d04ab527191afb /common | |
parent | 5c3e48fddf2f021d51e41db1672d7ff543c52426 (diff) | |
download | scummvm-rg350-c0b04fdcaa0d357a0565a16ea7be74994e55da07.tar.gz scummvm-rg350-c0b04fdcaa0d357a0565a16ea7be74994e55da07.tar.bz2 scummvm-rg350-c0b04fdcaa0d357a0565a16ea7be74994e55da07.zip |
KEYMAPPER: Having a mapper is no longer optional
Diffstat (limited to 'common')
-rw-r--r-- | common/EventDispatcher.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/EventDispatcher.cpp b/common/EventDispatcher.cpp index 55eea9c7b2..6f36ee5f0f 100644 --- a/common/EventDispatcher.cpp +++ b/common/EventDispatcher.cpp @@ -54,7 +54,8 @@ void EventDispatcher::dispatch() { while (i->source->pollEvent(event)) { // We only try to process the events via the setup event mapper, when // we have a setup mapper and when the event source allows mapping. - if (_mapper && allowMapping) { + assert(_mapper); + if (allowMapping) { bool mapped = _mapper->notifyEvent(event); // EventMappers must map all events if (!mapped) @@ -67,7 +68,7 @@ void EventDispatcher::dispatch() { // Try getting another event from the current EventSource. continue; } else { - dispatchEvent(event); + dispatchEvent(Event(event)); } } } |