Using this code, the mouse works but the joystick doesn't

while (mouse_left == on)||(joy_1 == on)
{
fire_bullets();
boost_anim();
wait(-0.2);
}

The joystick tests okay.