mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 13:23:40 +00:00
Remove joypads from event queue.
This commit is contained in:
parent
08e1c5f0fd
commit
b302026b84
@ -34,6 +34,7 @@ static void* sdl_input_init(void)
|
||||
if (SDL_Init(SDL_INIT_JOYSTICK) < 0)
|
||||
return NULL;
|
||||
|
||||
SDL_JoystickEventState(SDL_IGNORE);
|
||||
sdl->num_joysticks = SDL_NumJoysticks();
|
||||
if (sdl->num_joysticks > 2)
|
||||
sdl->num_joysticks = 2;
|
||||
@ -149,6 +150,7 @@ static void sdl_input_poll(void *data)
|
||||
{
|
||||
SDL_PumpEvents();
|
||||
SDL_Event event;
|
||||
SDL_JoystickUpdate();
|
||||
|
||||
sdl_input_t *sdl = data;
|
||||
// Search for events...
|
||||
|
Loading…
x
Reference in New Issue
Block a user