Fixed gamepad support

Hasn’t been working for a little while.