SDL: Enable joystick support already present in the Qt UI

Co-authored-by: Alexander Babikov <lemondrops358@gmail.com>
This commit is contained in:
RichardG867
2025-12-21 01:01:30 -03:00
parent 747e71ef2d
commit 816f63b7a4
2 changed files with 1 additions and 21 deletions

View File

@@ -22,6 +22,7 @@ add_library(plat OBJECT
unix.c
unix_serial_passthrough.c
unix_netsocket.c
../qt/sdl_joystick.c
)
if (NOT CPPTHREADS)

View File

@@ -67,9 +67,6 @@ int fixed_size_x = 640;
int fixed_size_y = 480;
extern int title_set;
extern wchar_t sdl_win_title[512];
plat_joystick_state_t plat_joystick_state[MAX_PLAT_JOYSTICKS];
joystick_state_t joystick_state[GAMEPORT_MAX][MAX_JOYSTICKS];
int joysticks_present;
SDL_mutex *blitmtx;
SDL_threadID eventthread;
static int exit_event = 0;
@@ -1689,24 +1686,6 @@ plat_language_code_r(UNUSED(int id), UNUSED(char *outbuf), UNUSED(int len))
return;
}
void
joystick_init(void)
{
/* No-op. */
}
void
joystick_close(void)
{
/* No-op. */
}
void
joystick_process(uint8_t gp)
{
/* No-op. */
}
void
startblit(void)
{