diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-07-08 20:07:10 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-07-08 20:07:10 +0200 |
commit | a949ee0410fcce9144806d7b64e9ae4bffd4fee9 (patch) | |
tree | 77b3e9dd5d6c9db26e26612355285345298d6e50 /src/input_common | |
parent | config: Read UISettings as basic settings (diff) | |
download | yuzu-a949ee0410fcce9144806d7b64e9ae4bffd4fee9.tar yuzu-a949ee0410fcce9144806d7b64e9ae4bffd4fee9.tar.gz yuzu-a949ee0410fcce9144806d7b64e9ae4bffd4fee9.tar.bz2 yuzu-a949ee0410fcce9144806d7b64e9ae4bffd4fee9.tar.lz yuzu-a949ee0410fcce9144806d7b64e9ae4bffd4fee9.tar.xz yuzu-a949ee0410fcce9144806d7b64e9ae4bffd4fee9.tar.zst yuzu-a949ee0410fcce9144806d7b64e9ae4bffd4fee9.zip |
Diffstat (limited to 'src/input_common')
-rw-r--r-- | src/input_common/mouse/mouse_poller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/mouse/mouse_poller.cpp b/src/input_common/mouse/mouse_poller.cpp index 4861a131e..45b3d7340 100644 --- a/src/input_common/mouse/mouse_poller.cpp +++ b/src/input_common/mouse/mouse_poller.cpp @@ -84,8 +84,8 @@ public: std::lock_guard lock{mutex}; const auto axis_value = static_cast<float>(mouse_input->GetMouseState(button).axis.at(axis)); - return axis_value * Settings::values.mouse_panning_sensitivity.GetValue() / - (100.0f * range); + const float sensitivity = Settings::values.mouse_panning_sensitivity.GetValue(); + return axis_value * sensitivity / (100.0f * range); } std::pair<float, float> GetAnalog(u32 analog_axis_x, u32 analog_axis_y) const { |