diff options
| author | 2023-02-16 13:38:50 -0600 | |
|---|---|---|
| committer | 2023-02-16 14:22:13 -0600 | |
| commit | 17207939e50b64592f93c623219b70d26272df4d (patch) | |
| tree | 38387309d337d39398538f6d6c30e5db242e8d34 /src/input_common/input_mapping.cpp | |
| parent | Qt: Fix mouse scalling (diff) | |
| download | yuzu-17207939e50b64592f93c623219b70d26272df4d.tar.gz yuzu-17207939e50b64592f93c623219b70d26272df4d.tar.xz yuzu-17207939e50b64592f93c623219b70d26272df4d.zip | |
input_common: Split mouse input into individual devices
Diffstat (limited to 'src/input_common/input_mapping.cpp')
| -rw-r--r-- | src/input_common/input_mapping.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input_common/input_mapping.cpp b/src/input_common/input_mapping.cpp index d6e49d2c5..6990a86b9 100644 --- a/src/input_common/input_mapping.cpp +++ b/src/input_common/input_mapping.cpp | |||
| @@ -194,6 +194,10 @@ bool MappingFactory::IsDriverValid(const MappingData& data) const { | |||
| 194 | if (data.engine == "keyboard" && data.pad.port != 0) { | 194 | if (data.engine == "keyboard" && data.pad.port != 0) { |
| 195 | return false; | 195 | return false; |
| 196 | } | 196 | } |
| 197 | // Only port 0 can be mapped on the mouse | ||
| 198 | if (data.engine == "mouse" && data.pad.port != 0) { | ||
| 199 | return false; | ||
| 200 | } | ||
| 197 | // To prevent mapping with two devices we disable any UDP except motion | 201 | // To prevent mapping with two devices we disable any UDP except motion |
| 198 | if (!Settings::values.enable_udp_controller && data.engine == "cemuhookudp" && | 202 | if (!Settings::values.enable_udp_controller && data.engine == "cemuhookudp" && |
| 199 | data.type != EngineInputType::Motion) { | 203 | data.type != EngineInputType::Motion) { |