aboutsummaryrefslogtreecommitdiff
path: root/common/EventDispatcher.cpp
AgeCommit message (Collapse)Author
2017-07-27COMMON: Only clear events from the EventSources in clearEvents()Thierry Crozat
2017-07-26COMMON: Add method in EventManager to clear the event queueThierry Crozat
2014-02-18COMMON: Make GPL headers consistent in themselves.Johannes Schickel
2013-07-05Revert "COMMON: Fix crash when the keymapper and the event recorder are enabled"Filippos Karapetis
This reverts commit 93987d999c61221bda3da548c8c81f5d6d906a12.
2013-07-05COMMON: Fix crash when the keymapper and the event recorder are enabledFilippos Karapetis
DefaultEventManager registers a keymapper that is supposed to be auto-freed. However, the event recorder then sets itself as a new keymapper, but because the autofree flag is already set, registerMapper() ends up deleting the event recorder itself. Setting the autofree flag before actually freeing the mapper fixes the issue and prevents ScummVM from crashing on startup
2013-07-05COMMON: Initialize EventDispatcher::_autoFreeMapper.Johannes Schickel
This fixes a branching on uninitialized variable reported by valgrind on startup.
2013-05-17RECORDER: Implement Events RecorderEugene Sandulenko
2012-03-02KEYMAPPER: Add delays for *UP events coming from non-keysTarek Soliman
Delayed entries are in a queue where each entry stores how many milliseconds should pass based on the last entry.
2012-02-20KEYMAPPER: Rewrite the EventMapper APITarek Soliman
2012-02-20KEYMAPPER: Having a mapper is no longer optionalTarek Soliman
2012-02-20KEYMAPPER: EventMapper must now eat all eventsTarek Soliman
2011-08-08RECORDER: Restore event recorder functionality.Eugene Sandulenko
It was badly broken after refactoring into EventObserver. Fitst, deinit() method was never called which lead to bad record files. Then, the concept of counting pollEvent() calls was ignored. Introduced dispatchPoll() method of EventObserver which is implemented in EventRecorder. It counts calls so is able to inject events at more proper time. Additionally now event times are recorded.
2011-08-07COMMON: Remove superfluous Common:: qualifiers.Christoph Mallon
2011-08-07JANITORIAL: Remove trailing empty lines.Christoph Mallon
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2010-01-03Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is nullTorbjörn Andersson
before freeing it, which isn't necessary. svn-id: r46941
2009-10-04Change a couple places from 'end of namespace' to 'End of namespace', for ↵Max Horn
consistency svn-id: r44634
2009-07-26Changed the events.cpp file to EventDispatcher.cpp, to avoid MSVC name ↵Paul Gilbert
clashes with sdl/events.cpp svn-id: r42790