diff options
author | bunnei <bunneidev@gmail.com> | 2020-07-25 19:42:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-25 19:42:09 -0700 |
commit | b69f902b18a6af7c95ab556e2bc9365c8e8aea09 (patch) | |
tree | 1adf04384dadf67775b68aa35ce7f4d8d8ecf7f7 /src/input_common/gcadapter/gc_poller.cpp | |
parent | dd92bd644dc1526021c8e93cb80144c45b31a80c (diff) | |
parent | ac7e4e2cab7d9a953488d6f26350792251c82ffe (diff) |
Merge pull request #4417 from lioncash/poll
gc_adapter/gc_poller: Resolve compiler warnings
Diffstat (limited to 'src/input_common/gcadapter/gc_poller.cpp')
-rw-r--r-- | src/input_common/gcadapter/gc_poller.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_common/gcadapter/gc_poller.cpp b/src/input_common/gcadapter/gc_poller.cpp index 96e22d3ad..f45983f3f 100644 --- a/src/input_common/gcadapter/gc_poller.cpp +++ b/src/input_common/gcadapter/gc_poller.cpp @@ -76,8 +76,7 @@ std::unique_ptr<Input::ButtonDevice> GCButtonFactory::Create(const Common::Param // button is not an axis/stick button if (button_id != PAD_STICK_ID) { - auto button = std::make_unique<GCButton>(port, button_id, adapter.get()); - return std::move(button); + return std::make_unique<GCButton>(port, button_id, adapter.get()); } // For Axis buttons, used by the binary sticks. @@ -264,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; } } |