From f20f4587e65160a193f336c98cfcb03af3aef256 Mon Sep 17 00:00:00 2001 From: german77 Date: Sun, 25 Apr 2021 18:03:57 -0500 Subject: input_common: Implement SDL motion --- src/input_common/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/input_common/main.cpp') diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp index 7c4e7dd3b..7399c3648 100644 --- a/src/input_common/main.cpp +++ b/src/input_common/main.cpp @@ -153,6 +153,11 @@ struct InputSubsystem::Impl { // TODO return the correct motion device return {}; } +#ifdef HAVE_SDL2 + if (params.Get("class", "") == "sdl") { + return sdl->GetMotionMappingForDevice(params); + } +#endif return {}; } -- cgit v1.2.3