15 Commits

Author SHA1 Message Date
Filippos Karapetis 177f04349a COMMON: Use C++ 11 range-based for loops 2025-03-27 13:47:57 +08:00
Giovanni Cascione a72296be87 COMMON: clear mappedEvents list only if empty 2024-04-25 01:05:46 +02:00
Giovanni Cascione 3b466e65be COMMON: move mappedEvents declaration out of for loop 2024-03-02 14:10:13 +02:00
Le Philousophe c83ff22c8a COMMON: Fix uninitialized member
It was never used but static analysis complained
2022-09-18 20:43:33 +02:00
Thierry Crozat 63cef724f8 COMMON: Fix mapped events being dispatched twice 2022-06-19 02:12:34 +01:00
Cameron Cawley cb3a024589 COMMON: Allow registering multiple event mappers 2022-06-18 23:13:17 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Martin Gerhardy f35cc92aaf EVENTRECORDER: ignore other event sources when playing back a record 2021-07-08 15:05:35 +02:00
Bastien Bouclet 85e3fb38fb SDL: Change keyboard repeat to apply on unmapped events
The keyboard repeat event generator is used when building against SDL1.
Previously the repeat events would generate based on the event stream
produced by the keymapper which is not guaranteed to have matching up
and down events in the case the keymaps are changed while a key is
pressed.

Fixes #11417.
2020-04-12 11:11:00 +02:00
Bastien Bouclet e66e35a3fd COMMON: Move isMouseEvent from Keymapper to Common 2020-03-09 20:00:31 +01:00
Paul Gilbert 8e60e31db3 Changed the events.cpp file to EventDispatcher.cpp, to avoid MSVC name clashes with sdl/events.cpp
svn-id: r42790
2009-07-26 00:27:32 +00:00
Johannes Schickel fa4903f19c Strip trailing whitespaces.
svn-id: r42752
2009-07-25 13:00:09 +00:00
Johannes Schickel 901f2d5836 - EventDispatcher is no longer a singleton.
- Add "getEventDispatcher" method to EventManager.

svn-id: r42728
2009-07-25 01:01:22 +00:00
Johannes Schickel b4a1bceeac Add function "allowMapping" to EventSource, for testing whether the event source allows mapping (via the Keymapper for example.)
svn-id: r42720
2009-07-25 00:59:30 +00:00
Johannes Schickel 908af0a37f Add new event dispatching API.
svn-id: r42717
2009-07-25 00:58:44 +00:00