We have seen quite a few DIY joystick designs that use Hall effect ... which is typically provided by a nearby magnet. By mounting sensors and magnets in a way that varies the distance between ...