SDL: Move the keyboard mouse to a subclass of SdlEventSource

And deprecate it. The new Virtual Mouse system is expected to replace
it.
This commit is contained in:
Bastien Bouclet 2020-03-02 20:24:42 +01:00
parent 2d87c21c2b
commit d94c7c3bcc
18 changed files with 480 additions and 377 deletions

View file

@ -40,7 +40,7 @@
#endif
#include "backends/events/default/default-events.h"
#include "backends/events/sdl/sdl-events.h"
#include "backends/events/sdl/legacy-sdl-events.h"
#include "backends/keymapper/hardware-input.h"
#include "backends/mutex/sdl/sdl-mutex.h"
#include "backends/timer/sdl/sdl-timer.h"
@ -203,7 +203,7 @@ void OSystem_SDL::initBackend() {
// Create the default event source, in case a custom backend
// manager didn't provide one yet.
if (_eventSource == 0)
_eventSource = new SdlEventSource();
_eventSource = new LegacySdlEventSource();
if (_eventManager == nullptr) {
DefaultEventManager *eventManager = new DefaultEventManager(_eventSource);