joystick: add connected check when a button is pushed on the joystick #623