Inexpensive joysticks, such as those used In toys and games, often lack encoders and contaIn only a pair of three-position switches. How might such devices function?