Matt Hawkins’ site Raspberry Pi Spy has been a constant source of reference for me when creating the Picorder, my box-with-sensors. Many of those sensors provide analog outputs (which I read using an MCP3008) and Matt has now written a tutorial in which he uses an analog joystick to provide input to the Pi. Read how he did it here.