summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorAmeer J <52414509+ameerj@users.noreply.github.com>2020-06-26 01:46:50 +0200
committerGitHub <noreply@github.com>2020-06-26 01:46:50 +0200
commitecbc8137117d6d37b231fc2745b281b6e7077e16 (patch)
tree217ec31e4eee1ee10983f1e372271f4c204b11bd /src/input_common
parentStop reading loop if error is encountered (diff)
downloadyuzu-ecbc8137117d6d37b231fc2745b281b6e7077e16.tar
yuzu-ecbc8137117d6d37b231fc2745b281b6e7077e16.tar.gz
yuzu-ecbc8137117d6d37b231fc2745b281b6e7077e16.tar.bz2
yuzu-ecbc8137117d6d37b231fc2745b281b6e7077e16.tar.lz
yuzu-ecbc8137117d6d37b231fc2745b281b6e7077e16.tar.xz
yuzu-ecbc8137117d6d37b231fc2745b281b6e7077e16.tar.zst
yuzu-ecbc8137117d6d37b231fc2745b281b6e7077e16.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/gcadapter/gc_adapter.cpp4
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 173b5c325..80355a40d 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 button : PadButtonArray) {
+ for (auto const& 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 isn’t 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);