diff options
| author | 2021-10-24 11:22:20 -0500 | |
|---|---|---|
| committer | 2021-11-24 20:30:25 -0600 | |
| commit | 464c4d26ac8e7af6302390684445b357e5cda4e4 (patch) | |
| tree | 160f98a8bce324756f46b7b5aee889bb5b53f8af /src/input_common/main.cpp | |
| parent | web_applet: Replace HIDButton with NpadButton (diff) | |
| download | yuzu-464c4d26ac8e7af6302390684445b357e5cda4e4.tar.gz yuzu-464c4d26ac8e7af6302390684445b357e5cda4e4.tar.xz yuzu-464c4d26ac8e7af6302390684445b357e5cda4e4.zip | |
settings: Fix mouse and keyboard mappings
Diffstat (limited to 'src/input_common/main.cpp')
| -rw-r--r-- | src/input_common/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp index 8f7ce59b7..07d514ad7 100644 --- a/src/input_common/main.cpp +++ b/src/input_common/main.cpp | |||
| @@ -143,6 +143,9 @@ struct InputSubsystem::Impl { | |||
| 143 | return {}; | 143 | return {}; |
| 144 | } | 144 | } |
| 145 | const std::string engine = params.Get("engine", ""); | 145 | const std::string engine = params.Get("engine", ""); |
| 146 | if (engine == mouse->GetEngineName()) { | ||
| 147 | return mouse->GetAnalogMappingForDevice(params); | ||
| 148 | } | ||
| 146 | if (engine == gcadapter->GetEngineName()) { | 149 | if (engine == gcadapter->GetEngineName()) { |
| 147 | return gcadapter->GetAnalogMappingForDevice(params); | 150 | return gcadapter->GetAnalogMappingForDevice(params); |
| 148 | } | 151 | } |