summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2024-08-14 23:54:16 +0100
committerGitHub <noreply@github.com>2024-08-14 23:54:16 +0100
commit18ac8bf4055093d5aece0e631d04e4d38ec8f0c6 (patch)
tree44fe8038aada312f60396c18053e2bd04f564619 /Source/Core/InputCommon/ControllerInterface
parent1e8b3a58b2ef312e0904d7fbb2a37efaee96dc8f (diff)
parent618b41a4593032a5c374069b37369e91ecf5db9e (diff)
Merge pull request #12990 from tygyh/Use-contains-method
Use 'contains' method
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
index f095818287..577bd761d4 100644
--- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
@@ -44,7 +44,7 @@ void InitJoystick(IDirectInput8* const idi8, HWND hwnd)
for (DIDEVICEINSTANCE& joystick : joysticks)
{
// Skip XInput Devices
- if (xinput_guids.count(joystick.guidProduct.Data1))
+ if (xinput_guids.contains(joystick.guidProduct.Data1))
{
continue;
}
@@ -52,7 +52,7 @@ void InitJoystick(IDirectInput8* const idi8, HWND hwnd)
// Skip devices we are already using.
{
std::lock_guard lk(s_guids_mutex);
- if (s_guids_in_use.count(joystick.guidInstance))
+ if (s_guids_in_use.contains(joystick.guidInstance))
{
continue;
}