mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-23 20:15:35 +00:00
sdl_impl: Prevent type truncation in BuildAnalogParamPackageForButton() default arguments
We need to add the 'f' suffix to make the right hand side a float and not a double.
This commit is contained in:
parent
2e2dde2f95
commit
f3ac088345
|
@ -574,7 +574,7 @@ std::vector<Common::ParamPackage> SDLState::GetInputDevices() {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guid, u8 axis,
|
Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guid, u8 axis,
|
||||||
float value = 0.1) {
|
float value = 0.1f) {
|
||||||
Common::ParamPackage params({{"engine", "sdl"}});
|
Common::ParamPackage params({{"engine", "sdl"}});
|
||||||
params.Set("port", port);
|
params.Set("port", port);
|
||||||
params.Set("guid", guid);
|
params.Set("guid", guid);
|
||||||
|
|
Loading…
Reference in a new issue