Fixed uhid device name for non-OpenBSD platforms

main
Sam Lantinga 2022-08-27 09:46:28 -07:00
parent 3f93ec470a
commit b188a916ff
1 changed files with 1 additions and 1 deletions

View File

@ -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);