Focus changes cause gamepad "button up" events

Yes, here it is: GitHub - Lucide/ahkSDL.
Contains: an example script, a thin SDL2 ahk wrapper, a SDL2 .dll binary