From f15a9eb0d10a81f1c2a9b9fd72edd8acb64d95dc Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Sun, 28 Apr 2024 22:34:07 +0900 Subject: [PATCH] ignored unused code in webOS --- src/joystick/linux/SDL_sysjoystick.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index 044c2d250b202..bdc393f7dca05 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -804,6 +804,8 @@ static void LINUX_InotifyJoystickDetect(void) } #endif /* HAVE_INOTIFY */ +#if !defined(__WEBOS__) + static int get_event_joystick_index(int event) { int joystick_index = -1; @@ -948,6 +950,8 @@ static void LINUX_ScanInputDevices(void) free(entries); /* This should NOT be SDL_free() */ } +#endif + static void LINUX_FallbackJoystickDetect(void) { const Uint32 SDL_JOY_DETECT_INTERVAL_MS = 3000; /* Update every 3 seconds */