Added Gamepad api.