summaryrefslogtreecommitdiffstats
path: root/src/input_common/mouse
diff options
context:
space:
mode:
authorAmeer J <52414509+ameerj@users.noreply.github.com>2021-07-08 20:46:31 +0200
committerGitHub <noreply@github.com>2021-07-08 20:46:31 +0200
commit5edc96f4a47bff64cfd97f0c91e42b56ab58b2d7 (patch)
treebd1e570a3f0594557e28516b0974aa07f67ad616 /src/input_common/mouse
parentOut of bound blit (#6531) (diff)
parentgeneral: Code formatting improvements (diff)
downloadyuzu-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.cpp3
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 {