"modern" headset remotes that work with devices from a major vendor have long since abandoned the analog resistor approach in favor of a digital system.
The details of the implementation aren't disclosed, but people have seen a whiff of it, e.g. here: