Try to be a bit safer with addInstance events.
Tons of SDL2_GamePad work.
Style fix
Spacing fix