summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-01-11 01:18:30 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-01-11 01:20:58 +0100
commit87b02f78e17b40b08f8efcb6a9fd8cf4dab976aa (patch)
tree8ab2d9da46fd3c8fcf0bb4bcc0d16a89c2633dde /src/input_common
parentMerge pull request #9583 from FernandoS27/fuck-ogl-already (diff)
downloadyuzu-87b02f78e17b40b08f8efcb6a9fd8cf4dab976aa.tar
yuzu-87b02f78e17b40b08f8efcb6a9fd8cf4dab976aa.tar.gz
yuzu-87b02f78e17b40b08f8efcb6a9fd8cf4dab976aa.tar.bz2
yuzu-87b02f78e17b40b08f8efcb6a9fd8cf4dab976aa.tar.lz
yuzu-87b02f78e17b40b08f8efcb6a9fd8cf4dab976aa.tar.xz
yuzu-87b02f78e17b40b08f8efcb6a9fd8cf4dab976aa.tar.zst
yuzu-87b02f78e17b40b08f8efcb6a9fd8cf4dab976aa.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/input_mapping.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/input_mapping.cpp b/src/input_common/input_mapping.cpp
index edd5287c1..d6e49d2c5 100644
--- a/src/input_common/input_mapping.cpp
+++ b/src/input_common/input_mapping.cpp
@@ -76,7 +76,7 @@ void MappingFactory::RegisterButton(const MappingData& data) {
break;
case EngineInputType::Analog:
// Ignore mouse axis when mapping buttons
- if (data.engine == "mouse") {
+ if (data.engine == "mouse" && data.index != 4) {
return;
}
new_input.Set("axis", data.index);