mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 04:25:37 +00:00
InputManager: Fix pointer scale loading
This commit is contained in:
parent
c2589461e9
commit
7bb0c7d1fb
@ -1921,8 +1921,9 @@ void InputManager::ReloadBindings(const SettingsInterface& binding_si, const Set
|
|||||||
// From lilypad: 1 mouse pixel = 1/8th way down.
|
// From lilypad: 1 mouse pixel = 1/8th way down.
|
||||||
const float default_scale = (axis <= static_cast<u32>(InputPointerAxis::Y)) ? 8.0f : 1.0f;
|
const float default_scale = (axis <= static_cast<u32>(InputPointerAxis::Y)) ? 8.0f : 1.0f;
|
||||||
s_pointer_axis_scale[axis] =
|
s_pointer_axis_scale[axis] =
|
||||||
1.0f / std::max(binding_si.GetFloatValue("Pad", fmt::format("Pointer{}Scale", s_pointer_axis_names[axis]).c_str(),
|
1.0f / std::max(binding_si.GetFloatValue(
|
||||||
default_scale),
|
"ControllerPorts",
|
||||||
|
TinyString::from_format("Pointer{}Scale", s_pointer_axis_names[axis]).c_str(), default_scale),
|
||||||
1.0f);
|
1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user