diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-05-15 23:20:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-15 23:20:18 -0400 |
commit | 6c78c2ae38cbcdf80f2dcab40513110a072c6c18 (patch) | |
tree | 14d75f5a675c243277b8948262dc5e4f934e91c0 /src/input_common/main.cpp | |
parent | 904584e4ba0b87e3f1555e29e9bf31109b65e301 (diff) | |
parent | f20f4587e65160a193f336c98cfcb03af3aef256 (diff) |
Merge pull request #6244 from german77/sdlmotion
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 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 {}; } |