ericoporto / agsjoy

[reverse engineered edition] Joystick for Adventure Game Studio in Linux. libagsjoy written by qptain_Nemo, for Linux, compatible with Wyz agsjoy.
MIT License
1 stars 1 forks source link

Ags sdl2 port fix #5

Closed ericoporto closed 6 years ago

ericoporto commented 6 years ago

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.