The Schlumpf switches gear by having two sets of internal pins that either lock the drive shaft to the hub shell or the planet gear carrier. There is a good picture of it in How does the Schlumpf hub work? thread
This system could potentially be adapted for other gear systems, though I haven’t heard of anyone even attempting it yet.