summaryrefslogtreecommitdiffstats
path: root/src/input_common/gcadapter/gc_poller.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-25 09:37:22 +0200
committerLioncash <mathew1800@gmail.com>2020-07-25 09:37:22 +0200
commit04699c366b4a1c086b257b8f02780936b1bf0b9f (patch)
tree5c64c2d55166fb350c9e560d6b056907fd934ddb /src/input_common/gcadapter/gc_poller.cpp
parentgc_poller: Resolve -Wredundant-move warning (diff)
downloadyuzu-04699c366b4a1c086b257b8f02780936b1bf0b9f.tar
yuzu-04699c366b4a1c086b257b8f02780936b1bf0b9f.tar.gz
yuzu-04699c366b4a1c086b257b8f02780936b1bf0b9f.tar.bz2
yuzu-04699c366b4a1c086b257b8f02780936b1bf0b9f.tar.lz
yuzu-04699c366b4a1c086b257b8f02780936b1bf0b9f.tar.xz
yuzu-04699c366b4a1c086b257b8f02780936b1bf0b9f.tar.zst
yuzu-04699c366b4a1c086b257b8f02780936b1bf0b9f.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/gcadapter/gc_poller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_common/gcadapter/gc_poller.cpp b/src/input_common/gcadapter/gc_poller.cpp
index 65454cb42..f45983f3f 100644
--- a/src/input_common/gcadapter/gc_poller.cpp
+++ b/src/input_common/gcadapter/gc_poller.cpp
@@ -263,7 +263,8 @@ Common::ParamPackage GCAnalogFactory::GetNextInput() {
if (analog_x_axis == -1) {
analog_x_axis = axis;
controller_number = static_cast<int>(port);
- } else if (analog_y_axis == -1 && analog_x_axis != axis && controller_number == port) {
+ } else if (analog_y_axis == -1 && analog_x_axis != axis &&
+ controller_number == static_cast<int>(port)) {
analog_y_axis = axis;
}
}