A variant on the wire/spring idea; use the coiled spring from an old thermostat. Add a drop of lead on the tip to act as contact.

You might be able to have two axis by placing two springs perpendicular.

This of course is totally theoretical.

Robert