convert main state to use gamepad api as well