summaryrefslogtreecommitdiffstats
path: root/src/input_common/gcadapter/gc_adapter.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-14 16:20:12 +0200
committerGitHub <noreply@github.com>2020-07-14 16:20:12 +0200
commit393cdb15f508d0b3b9db1592c4e081c0f21e907a (patch)
tree70219ad8f4744cc9a5f6e107a594909a3a2d7ea7 /src/input_common/gcadapter/gc_adapter.h
parentMerge pull request #4315 from lioncash/udp-warn (diff)
parentgc_poller: Mark GCButtonFactory::GetNextInput() as const (diff)
downloadyuzu-393cdb15f508d0b3b9db1592c4e081c0f21e907a.tar
yuzu-393cdb15f508d0b3b9db1592c4e081c0f21e907a.tar.gz
yuzu-393cdb15f508d0b3b9db1592c4e081c0f21e907a.tar.bz2
yuzu-393cdb15f508d0b3b9db1592c4e081c0f21e907a.tar.lz
yuzu-393cdb15f508d0b3b9db1592c4e081c0f21e907a.tar.xz
yuzu-393cdb15f508d0b3b9db1592c4e081c0f21e907a.tar.zst
yuzu-393cdb15f508d0b3b9db1592c4e081c0f21e907a.zip
Diffstat (limited to 'src/input_common/gcadapter/gc_adapter.h')
-rw-r--r--src/input_common/gcadapter/gc_adapter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.h b/src/input_common/gcadapter/gc_adapter.h
index 1337c260e..120ce4c02 100644
--- a/src/input_common/gcadapter/gc_adapter.h
+++ b/src/input_common/gcadapter/gc_adapter.h
@@ -107,7 +107,7 @@ public:
const std::array<GCState, 4>& GetPadState() const;
private:
- GCPadStatus GetPadStatus(int port, const std::array<u8, 37>& adapter_payload);
+ GCPadStatus GetPadStatus(std::size_t port, const std::array<u8, 37>& adapter_payload);
void PadToState(const GCPadStatus& pad, GCState& state);
@@ -120,10 +120,10 @@ private:
void StopScanThread();
/// Returns true if there is a device connected to port
- bool DeviceConnected(int port);
+ bool DeviceConnected(std::size_t port);
/// Resets status of device connected to port
- void ResetDeviceType(int port);
+ void ResetDeviceType(std::size_t port);
/// Returns true if we successfully gain access to GC Adapter
bool CheckDeviceAccess(libusb_device* device);