Map joystick directions to a code for a tabletop servo-latch prototype, with dead-zone detection, edge-triggered input, and separate servo power.