agsjoy now needs to filter joystick events using SDL_AddEventWatch and consume joystick events from the filter. This allows to get joystick events if sdl2 has already been initialised, It also now detects if joystick has been initialised or not, if it hasn't been, we need SDL to poll events - otherwise the filter won't be triggered.
agsjoy now needs to filter joystick events using SDL_AddEventWatch and consume joystick events from the filter. This allows to get joystick events if sdl2 has already been initialised, It also now detects if joystick has been initialised or not, if it hasn't been, we need SDL to poll events - otherwise the filter won't be triggered.