diff options
author | german77 <juangerman-13@hotmail.com> | 2021-04-25 18:03:57 -0500 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2021-05-15 08:56:58 -0500 |
commit | f20f4587e65160a193f336c98cfcb03af3aef256 (patch) | |
tree | 14d75f5a675c243277b8948262dc5e4f934e91c0 /src/input_common/main.cpp | |
parent | 904584e4ba0b87e3f1555e29e9bf31109b65e301 (diff) |
input_common: Implement SDL motion
Diffstat (limited to 'src/input_common/main.cpp')
-rw-r--r-- | src/input_common/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 {}; } |