The Atari joystick worked by connecting a +5V power supply pin to one of several pins in the joystick port [REF].
The main structure of the CX40 was formed from a concave moulded thermoplastic base with a separate flat lid that covered the opening on the top of the base.