Rotary potentiometer with steps/positions

Grumpy_Mike:

What you're after is a called "rotary encoder"

Yes but you can get them with or without "dents" these dents are the click that you feel when you turn it. You can also get different number of dents per revolution.

The technical name for which is "detents", although "dents" is sure to get you a laugh.

The term potentiometer is incorrect in this situation, as a potentiometer is a type of variable resistor. As noted by others, a rotary encoder is what you are looking for.