News for hackers. Stuff that matters.
Re:Fixing stutters in Papers Please on Linux by dkersten on Sunday January 02, 2022 @08:28AM (#29768535)
SDL has an event for when a new gamepad is detected or removed: http://wiki.libsdl.org/SDL_ControllerDeviceEvent although I don’t know what it does internally in order to detect this (well, the article describes what it does).

But you can also manually enumerate devices as in the example here: http://wiki.libsdl.org/SDL_GameControllerOpen

There are no comments on this comment yet.