VERY experimental Nintendo Switch 2 emulator
C++
sdl_impl: Prevent type truncation in BuildAnalogParamPackageForButton() default arguments
Lioncash3413c8c046fb
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cppindex cb2cdf96f9..9d3d1803c8 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() {namespace {Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guid, u8 axis,- float value = 0.1) {+ float value = 0.1f) {Common::ParamPackage params({{"engine", "sdl"}});params.Set("port", port);params.Set("guid", guid);