diff options
| author | 2020-08-28 21:08:06 -0400 | |
|---|---|---|
| committer | 2020-08-28 21:08:08 -0400 | |
| commit | f3ac0883451ba4359a155c0d10992d675a63d9c9 (patch) | |
| tree | c3c49a5fb82cc726b38193ac564f57f2c92934f8 /src/input_common/sdl/sdl_impl.cpp | |
| parent | sdl_impl: Simplify make_tuple call (diff) | |
| download | yuzu-f3ac0883451ba4359a155c0d10992d675a63d9c9.tar.gz yuzu-f3ac0883451ba4359a155c0d10992d675a63d9c9.tar.xz yuzu-f3ac0883451ba4359a155c0d10992d675a63d9c9.zip | |
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.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index cb2cdf96f..9d3d1803c 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -574,7 +574,7 @@ std::vector<Common::ParamPackage> SDLState::GetInputDevices() { | |||
| 574 | 574 | ||
| 575 | namespace { | 575 | namespace { |
| 576 | Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guid, u8 axis, | 576 | Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guid, u8 axis, |
| 577 | float value = 0.1) { | 577 | float value = 0.1f) { |
| 578 | Common::ParamPackage params({{"engine", "sdl"}}); | 578 | Common::ParamPackage params({{"engine", "sdl"}}); |
| 579 | params.Set("port", port); | 579 | params.Set("port", port); |
| 580 | params.Set("guid", guid); | 580 | params.Set("guid", guid); |