mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-08 05:39:07 +01:00
left const auto&, comment punctuation.
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
This commit is contained in:
parent
ecbc813711
commit
bd697bef03
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ GCPadStatus Adapter::GetPadStatus(int port, const std::array<u8, 37>& adapter_pa
|
||||||
}
|
}
|
||||||
|
|
||||||
void Adapter::PadToState(const GCPadStatus& pad, GCState& state) {
|
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);
|
u16 button_value = static_cast<u16>(button);
|
||||||
state.buttons.insert_or_assign(button_value, pad.button & button_value);
|
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) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
const int open_error = libusb_open(device, &usb_adapter_handle);
|
const int open_error = libusb_open(device, &usb_adapter_handle);
|
||||||
|
|
Loading…
Reference in a new issue