I took an Apple analog joystick apart when I was in junior high and measured the resistance in all directions. Then I took a Wico "bat-handle" digital joystick apart and wired resistors in to simulate the full deflection of the analog joystick. Then I had to cut the 9-pin plug off and solder the necessary wires to a DIP plug to go into the Apple computer. The Wico joystick already had two buttons, which were necessary for the Apple (ironically, considering Steve Jobs's stand on multi-button mice years later).
I wrote the whole thing up as a how-to article for Compute magazine, but I don't recall what response I got to the submission. They didn't publish it, but the thing worked. I still have my one prototype around somewhere in its original box.
Then we’d see if we could sneak down the hall undetected, Mission Impossible style. I never noticed the detection speed varying with light level but I guess it did!