The pigs don't usually stand still for pets or ear scratches. Sometimes they like the ear scratches, especially when they're busy eating. But usually I think it reminds them too much of being picked up, which always scares them at first. But a nose-boop they'll usually participate in.
I don't know if they get it or they're just confused. But at least they don't mind it.