How about a variable resistor? That may have "steps " depending in the design, not sure if that meets your criteria. It wouldn't be hard to make a truly variable one using conductive fluid.