fix joystick events handling