You could get the desired behavior with a simple circuit consisting of a sliding potentiometer, a transistor, and few resistors.
P.S. While I was writing this comment I remembered these things. You might be able to cannibalize the switch from one of them.