Commit b188a916ff87da3a1a3a71660e64468271ad8848

Sam Lantinga 2022-08-27T09:46:28

Fixed uhid device name for non-OpenBSD platforms

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/bsd/SDL_bsdjoystick.c b/src/joystick/bsd/SDL_bsdjoystick.c
index 43a4ef5..1f4e122 100644
--- a/src/joystick/bsd/SDL_bsdjoystick.c
+++ b/src/joystick/bsd/SDL_bsdjoystick.c
@@ -229,7 +229,7 @@ BSD_JoystickInit(void)
 #if defined(__OpenBSD__) && (OpenBSD >= 202105)
         SDL_snprintf(s, SDL_arraysize(s), "/dev/ujoy/%d", i);
 #else
-        SDL_snprintf(s, SDL_arraysize(s), "/dev/uhid/%d", i);
+        SDL_snprintf(s, SDL_arraysize(s), "/dev/uhid%d", i);
 #endif
 
         joynames[numjoysticks] = SDL_strdup(s);