diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2021-07-08 20:46:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 20:46:31 +0200 |
commit | 5edc96f4a47bff64cfd97f0c91e42b56ab58b2d7 (patch) | |
tree | bd1e570a3f0594557e28516b0974aa07f67ad616 /src/input_common/mouse | |
parent | Out of bound blit (#6531) (diff) | |
parent | general: Code formatting improvements (diff) | |
download | yuzu-5edc96f4a47bff64cfd97f0c91e42b56ab58b2d7.tar yuzu-5edc96f4a47bff64cfd97f0c91e42b56ab58b2d7.tar.gz yuzu-5edc96f4a47bff64cfd97f0c91e42b56ab58b2d7.tar.bz2 yuzu-5edc96f4a47bff64cfd97f0c91e42b56ab58b2d7.tar.lz yuzu-5edc96f4a47bff64cfd97f0c91e42b56ab58b2d7.tar.xz yuzu-5edc96f4a47bff64cfd97f0c91e42b56ab58b2d7.tar.zst yuzu-5edc96f4a47bff64cfd97f0c91e42b56ab58b2d7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/mouse/mouse_poller.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_common/mouse/mouse_poller.cpp b/src/input_common/mouse/mouse_poller.cpp index 758f7af1f..45b3d7340 100644 --- a/src/input_common/mouse/mouse_poller.cpp +++ b/src/input_common/mouse/mouse_poller.cpp @@ -84,7 +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 / (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 { |