def joystick_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert:
    axes = sm['testJoystick'].axes
    (gb, steer) = (list(axes)[:2] if len(axes) else (0.0, 0.0))
    vals = f'Gas: {round((gb * 100.0))}%, Steer: {round((steer * 100.0))}%'
    return NormalPermanentAlert('Joystick Mode', vals)
def joystick_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert:
    axes = sm['testJoystick'].axes
    (gb, steer) = (list(axes)[:2] if len(axes) else (0.0, 0.0))
    vals = f'Gas: {round((gb * 100.0))}%, Steer: {round((steer * 100.0))}%'
    return NormalPermanentAlert('Joystick Mode', vals)