input_common: Implement SDL motion
This commit is contained in:
parent
904584e4ba
commit
f20f4587e6
5 changed files with 167 additions and 3 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue