Add functions to look up an axis based on the type

This should allow things like "assign throttle axis (if joystick has
one) to throttle control by default".