diff options
| author | 2023-01-10 17:32:58 -0800 | |
|---|---|---|
| committer | 2023-01-10 17:32:58 -0800 | |
| commit | 0e8f98a441400d0dc87425d4c2c26e71e995bdcb (patch) | |
| tree | c61f3004ff0b01b88b4990436ddb2abe9119dce1 /src/input_common/input_mapping.cpp | |
| parent | Merge pull request #9596 from liamwhite/mvk (diff) | |
| parent | yuzu: Read mouse wheel input (diff) | |
| download | yuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.tar.gz yuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.tar.xz yuzu-0e8f98a441400d0dc87425d4c2c26e71e995bdcb.zip | |
Merge pull request #9605 from german77/mouse_mapping
yuzu: Read mouse scroll
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/input_mapping.cpp | 2 |
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) { | |||
| 76 | break; | 76 | break; |
| 77 | case EngineInputType::Analog: | 77 | case EngineInputType::Analog: |
| 78 | // Ignore mouse axis when mapping buttons | 78 | // Ignore mouse axis when mapping buttons |
| 79 | if (data.engine == "mouse") { | 79 | if (data.engine == "mouse" && data.index != 4) { |
| 80 | return; | 80 | return; |
| 81 | } | 81 | } |
| 82 | new_input.Set("axis", data.index); | 82 | new_input.Set("axis", data.index); |