SDL: Increased the timeout when opening /dev/hidraw nodes

From 2bf05f38aded8919ea37268d8da020ad47dc9dc4 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 18 Jul 2023 14:27:18 -0700
Subject: [PATCH] Increased the timeout when opening /dev/hidraw nodes

We're still seeing it taking longer than 10ms for permissions to become available on Steam Deck.
---
 src/hidapi/linux/hid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hidapi/linux/hid.c b/src/hidapi/linux/hid.c
index 95f12ccd4f90..00e44a5f090e 100644
--- a/src/hidapi/linux/hid.c
+++ b/src/hidapi/linux/hid.c
@@ -1096,7 +1096,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
 		return NULL;
 	}
 
-    const int MAX_ATTEMPTS = 10;
+    const int MAX_ATTEMPTS = 50;
     int attempt;
     for (attempt = 1; attempt <= MAX_ATTEMPTS; ++attempt) {
         dev->device_handle = open(path, O_RDWR | O_CLOEXEC);