Skip to content

Commit

Permalink
InputManager: Fix pointer scale loading
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Dec 28, 2024
1 parent c258946 commit 7bb0c7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/util/input_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1921,8 +1921,9 @@ void InputManager::ReloadBindings(const SettingsInterface& binding_si, const Set
// From lilypad: 1 mouse pixel = 1/8th way down.
const float default_scale = (axis <= static_cast<u32>(InputPointerAxis::Y)) ? 8.0f : 1.0f;
s_pointer_axis_scale[axis] =
1.0f / std::max(binding_si.GetFloatValue("Pad", fmt::format("Pointer{}Scale", s_pointer_axis_names[axis]).c_str(),
default_scale),
1.0f / std::max(binding_si.GetFloatValue(
"ControllerPorts",
TinyString::from_format("Pointer{}Scale", s_pointer_axis_names[axis]).c_str(), default_scale),
1.0f);
}

Expand Down

0 comments on commit 7bb0c7d

Please # to comment.