diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2020-06-27 05:46:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 05:46:49 +0200 |
commit | bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f (patch) | |
tree | ff6bb4be8cf4a51f41ddbbdc7bfa7a7d5c14e786 /src | |
parent | const& to button in button array (diff) | |
download | yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.tar yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.tar.gz yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.tar.bz2 yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.tar.lz yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.tar.xz yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.tar.zst yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/input_common/gcadapter/gc_adapter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cpp index 80355a40d..774246bdf 100644 --- a/src/input_common/gcadapter/gc_adapter.cpp +++ b/src/input_common/gcadapter/gc_adapter.cpp @@ -72,7 +72,7 @@ GCPadStatus Adapter::GetPadStatus(int port, const std::array<u8, 37>& adapter_pa } void Adapter::PadToState(const GCPadStatus& pad, GCState& state) { - for (auto const& button : PadButtonArray) { + for (const auto& button : PadButtonArray) { u16 button_value = static_cast<u16>(button); state.buttons.insert_or_assign(button_value, pad.button & button_value); } @@ -213,7 +213,7 @@ bool Adapter::CheckDeviceAccess(libusb_device* device) { } if (desc.idVendor != 0x057e || desc.idProduct != 0x0337) { - // This isnt the device we are looking for. + // This isn't the device we are looking for. return false; } const int open_error = libusb_open(device, &usb_adapter_handle); |