Managing gamepad plugged/unplugged state