summaryrefslogtreecommitdiffstats
path: root/src/input_common/mouse/mouse_poller.cpp
diff options
context:
space:
mode:
authorgerman <german@thesoftwareartisans.com>2021-02-03 19:34:25 +0100
committergerman <german@thesoftwareartisans.com>2021-02-08 03:31:58 +0100
commit52b79ac00965aaf10db1a181067c2f2d33125171 (patch)
tree52ebd5133ac802db77e03d988dced834c833936e /src/input_common/mouse/mouse_poller.cpp
parentMerge pull request #5885 from MerryMage/ring_buffer-granularity (diff)
downloadyuzu-52b79ac00965aaf10db1a181067c2f2d33125171.tar
yuzu-52b79ac00965aaf10db1a181067c2f2d33125171.tar.gz
yuzu-52b79ac00965aaf10db1a181067c2f2d33125171.tar.bz2
yuzu-52b79ac00965aaf10db1a181067c2f2d33125171.tar.lz
yuzu-52b79ac00965aaf10db1a181067c2f2d33125171.tar.xz
yuzu-52b79ac00965aaf10db1a181067c2f2d33125171.tar.zst
yuzu-52b79ac00965aaf10db1a181067c2f2d33125171.zip
Diffstat (limited to 'src/input_common/mouse/mouse_poller.cpp')
-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 508eb0c7d..3d0dd7fc8 100644
--- a/src/input_common/mouse/mouse_poller.cpp
+++ b/src/input_common/mouse/mouse_poller.cpp
@@ -6,6 +6,7 @@
#include <utility>
#include "common/threadsafe_queue.h"
+#include "core/settings.h"
#include "input_common/mouse/mouse_input.h"
#include "input_common/mouse/mouse_poller.h"
@@ -71,7 +72,7 @@ public:
std::lock_guard lock{mutex};
const auto axis_value =
static_cast<float>(mouse_input->GetMouseState(button).axis.at(axis));
- return axis_value / (100.0f * range);
+ return axis_value * Settings::values.mouse_panning_sensitivity / (100.0f * range);
}
std::pair<float, float> GetAnalog(u32 analog_axis_x, u32 analog_axis_y) const {