diff options
| author | 2020-06-26 23:46:49 -0400 | |
|---|---|---|
| committer | 2020-06-26 23:46:49 -0400 | |
| commit | bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f (patch) | |
| tree | ff6bb4be8cf4a51f41ddbbdc7bfa7a7d5c14e786 | |
| parent | const& to button in button array (diff) | |
| download | yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.tar.gz yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.tar.xz yuzu-bd697bef039ddf307ed7ddf3d9daf0fd7ec1ee8f.zip | |
left const auto&, comment punctuation.
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
Diffstat (limited to '')
| -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 | |||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void Adapter::PadToState(const GCPadStatus& pad, GCState& state) { | 74 | void Adapter::PadToState(const GCPadStatus& pad, GCState& state) { |
| 75 | for (auto const& button : PadButtonArray) { | 75 | for (const auto& button : PadButtonArray) { |
| 76 | u16 button_value = static_cast<u16>(button); | 76 | u16 button_value = static_cast<u16>(button); |
| 77 | state.buttons.insert_or_assign(button_value, pad.button & button_value); | 77 | state.buttons.insert_or_assign(button_value, pad.button & button_value); |
| 78 | } | 78 | } |
| @@ -213,7 +213,7 @@ bool Adapter::CheckDeviceAccess(libusb_device* device) { | |||
| 213 | } | 213 | } |
| 214 | 214 | ||
| 215 | if (desc.idVendor != 0x057e || desc.idProduct != 0x0337) { | 215 | if (desc.idVendor != 0x057e || desc.idProduct != 0x0337) { |
| 216 | // This isnt the device we are looking for. | 216 | // This isn't the device we are looking for. |
| 217 | return false; | 217 | return false; |
| 218 | } | 218 | } |
| 219 | const int open_error = libusb_open(device, &usb_adapter_handle); | 219 | const int open_error = libusb_open(device, &usb_adapter_handle); |