diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-25 09:37:22 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-25 09:37:22 +0200 |
commit | 04699c366b4a1c086b257b8f02780936b1bf0b9f (patch) | |
tree | 5c64c2d55166fb350c9e560d6b056907fd934ddb /src/input_common | |
parent | gc_poller: Resolve -Wredundant-move warning (diff) | |
download | yuzu-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 'src/input_common')
-rw-r--r-- | src/input_common/gcadapter/gc_poller.cpp | 3 |
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; } } |