diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-18 22:25:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 22:25:48 +0100 |
commit | e531d1fae986addc7253e14bcc569c38ab50ccb0 (patch) | |
tree | 82b68c763271ac1d15112a536136f7462cacadfb /src/input_common/input_mapping.cpp | |
parent | Merge pull request #9825 from liamwhite/object-name (diff) | |
parent | input_common: Split mouse input into individual devices (diff) | |
download | yuzu-e531d1fae986addc7253e14bcc569c38ab50ccb0.tar yuzu-e531d1fae986addc7253e14bcc569c38ab50ccb0.tar.gz yuzu-e531d1fae986addc7253e14bcc569c38ab50ccb0.tar.bz2 yuzu-e531d1fae986addc7253e14bcc569c38ab50ccb0.tar.lz yuzu-e531d1fae986addc7253e14bcc569c38ab50ccb0.tar.xz yuzu-e531d1fae986addc7253e14bcc569c38ab50ccb0.tar.zst yuzu-e531d1fae986addc7253e14bcc569c38ab50ccb0.zip |
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 { if (data.engine == "keyboard" && data.pad.port != 0) { return false; } + // Only port 0 can be mapped on the mouse + if (data.engine == "mouse" && data.pad.port != 0) { + return false; + } // To prevent mapping with two devices we disable any UDP except motion if (!Settings::values.enable_udp_controller && data.engine == "cemuhookudp" && data.type != EngineInputType::Motion) { |