Added gamepad functionality