input_common: Implement SDL motion

This commit is contained in:
german77 2021-04-25 18:03:57 -05:00
parent 904584e4ba
commit f20f4587e6
5 changed files with 167 additions and 3 deletions

View file

@ -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 {};
}