diff options
| author | 2021-11-26 15:45:37 -0600 | |
|---|---|---|
| committer | 2021-11-26 15:46:36 -0600 | |
| commit | 639402850ac65c694967ef6519becb65abe89b39 (patch) | |
| tree | 55ab559c417a519ac8b93a746428842e53c19a31 /src/input_common/input_mapping.cpp | |
| parent | service/hid: Finish converting LIFO objects and address some nits (diff) | |
| download | yuzu-639402850ac65c694967ef6519becb65abe89b39.tar.gz yuzu-639402850ac65c694967ef6519becb65abe89b39.tar.xz yuzu-639402850ac65c694967ef6519becb65abe89b39.zip | |
input_common: Fully implement UDP controllers
Diffstat (limited to 'src/input_common/input_mapping.cpp')
| -rw-r--r-- | src/input_common/input_mapping.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input_common/input_mapping.cpp b/src/input_common/input_mapping.cpp index c5218f2cb..6e0024b2d 100644 --- a/src/input_common/input_mapping.cpp +++ b/src/input_common/input_mapping.cpp | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | // Refer to the license.txt file included | 3 | // Refer to the license.txt file included |
| 4 | 4 | ||
| 5 | #include "common/common_types.h" | 5 | #include "common/common_types.h" |
| 6 | #include "common/settings.h" | ||
| 6 | #include "input_common/input_engine.h" | 7 | #include "input_common/input_engine.h" |
| 7 | #include "input_common/input_mapping.h" | 8 | #include "input_common/input_mapping.h" |
| 8 | 9 | ||
| @@ -182,6 +183,11 @@ bool MappingFactory::IsDriverValid(const MappingData& data) const { | |||
| 182 | if (data.engine == "keyboard" && data.pad.port != 0) { | 183 | if (data.engine == "keyboard" && data.pad.port != 0) { |
| 183 | return false; | 184 | return false; |
| 184 | } | 185 | } |
| 186 | // To prevent mapping with two devices we disable any UDP except motion | ||
| 187 | if (!Settings::values.enable_udp_controller && data.engine == "cemuhookudp" && | ||
| 188 | data.type != EngineInputType::Motion) { | ||
| 189 | return false; | ||
| 190 | } | ||
| 185 | // The following drivers don't need to be mapped | 191 | // The following drivers don't need to be mapped |
| 186 | if (data.engine == "tas") { | 192 | if (data.engine == "tas") { |
| 187 | return false; | 193 | return false; |