Hall Sensor as an axis (joystick

That does seem suitable, although I have no experience with that part.