Fixed build error (thanks @sezero!)

(cherry picked from commit ac5a61cd60)
(cherry picked from commit 67c60e0b9c)
This commit is contained in:
Sam Lantinga
2024-04-25 09:45:10 -07:00
parent bf540985aa
commit f6f1b09b69

View File

@@ -907,7 +907,9 @@ static void LINUX_ScanSteamVirtualGamepads(void)
int num_virtual_gamepads = 0;
int virtual_gamepad_slot;
VirtualGamepadEntry *virtual_gamepads = NULL;
#ifdef SDL_USE_LIBUDEV
int class;
#endif
count = scandir("/dev/input", &entries, filter_entries, NULL);
for (i = 0; i < count; ++i) {