diff options
author | Lioncash <mathew1800@gmail.com> | 2022-01-24 17:48:59 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-01-24 17:49:52 +0100 |
commit | 187c9d7e33220dd100abf5d5b76f9d9cab7f3084 (patch) | |
tree | a0fa545d1e0a6e9111e7c39f29b7a16cfdcc56eb /src | |
parent | input_common/input_mapping: Add missing includes (diff) | |
download | yuzu-187c9d7e33220dd100abf5d5b76f9d9cab7f3084.tar yuzu-187c9d7e33220dd100abf5d5b76f9d9cab7f3084.tar.gz yuzu-187c9d7e33220dd100abf5d5b76f9d9cab7f3084.tar.bz2 yuzu-187c9d7e33220dd100abf5d5b76f9d9cab7f3084.tar.lz yuzu-187c9d7e33220dd100abf5d5b76f9d9cab7f3084.tar.xz yuzu-187c9d7e33220dd100abf5d5b76f9d9cab7f3084.tar.zst yuzu-187c9d7e33220dd100abf5d5b76f9d9cab7f3084.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/input_common/input_mapping.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_common/input_mapping.cpp b/src/input_common/input_mapping.cpp index 02c7ccff7..a7a6ad8c2 100644 --- a/src/input_common/input_mapping.cpp +++ b/src/input_common/input_mapping.cpp @@ -56,7 +56,7 @@ void MappingFactory::StopMapping() { void MappingFactory::RegisterButton(const MappingData& data) { Common::ParamPackage new_input; new_input.Set("engine", data.engine); - if (data.pad.guid != Common::UUID{}) { + if (data.pad.guid.IsValid()) { new_input.Set("guid", data.pad.guid.Format()); } new_input.Set("port", static_cast<int>(data.pad.port)); @@ -92,7 +92,7 @@ void MappingFactory::RegisterButton(const MappingData& data) { void MappingFactory::RegisterStick(const MappingData& data) { Common::ParamPackage new_input; new_input.Set("engine", data.engine); - if (data.pad.guid != Common::UUID{}) { + if (data.pad.guid.IsValid()) { new_input.Set("guid", data.pad.guid.Format()); } new_input.Set("port", static_cast<int>(data.pad.port)); @@ -137,7 +137,7 @@ void MappingFactory::RegisterStick(const MappingData& data) { void MappingFactory::RegisterMotion(const MappingData& data) { Common::ParamPackage new_input; new_input.Set("engine", data.engine); - if (data.pad.guid != Common::UUID{}) { + if (data.pad.guid.IsValid()) { new_input.Set("guid", data.pad.guid.Format()); } new_input.Set("port", static_cast<int>(data.pad.port)); |