summaryrefslogtreecommitdiffstats
path: root/src/input_common/input_mapping.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-01-11 02:32:58 +0100
committerGitHub <noreply@github.com>2023-01-11 02:32:58 +0100
commit0e8f98a441400d0dc87425d4c2c26e71e995bdcb (patch)
treec61f3004ff0b01b88b4990436ddb2abe9119dce1 /src/input_common/input_mapping.cpp
parentMerge pull request #9596 from liamwhite/mvk (diff)
parentyuzu: Read mouse wheel input (diff)
downloadyuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.tar
yuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.tar.gz
yuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.tar.bz2
yuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.tar.lz
yuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.tar.xz
yuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.tar.zst
yuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.zip
Diffstat (limited to 'src/input_common/input_mapping.cpp')
-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);