From b79310def97be9b553e9eaf84251aac024cbadba 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 7c4e7dd3bf..7399c36486 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