summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-01-24 17:48:59 +0100
committerLioncash <mathew1800@gmail.com>2022-01-24 17:49:52 +0100
commit187c9d7e33220dd100abf5d5b76f9d9cab7f3084 (patch)
treea0fa545d1e0a6e9111e7c39f29b7a16cfdcc56eb
parentinput_common/input_mapping: Add missing includes (diff)
downloadyuzu-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
-rw-r--r--src/input_common/input_mapping.cpp6
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));