Type 0 cable

The parts list:
Item Amount
7406 1
74LS14 1
74LS86 1
1 kohm 1/4 W resistor 3
100 nF ceramic capacitor 3
8-wire cable 0,5 m
2-wire cable 0,5 m
6-pin female DIN connector 1
DB25 male connector 1
DB25 connector shell 1
DB15 male connector 1
DB15 connector shell 1
piece of perf board 1
small plastic case 1

The schematic:

The +5 V supply voltage can be obtained from PC joystick port pin 1. You'll of course also need to connect the signal ground to LPT port pins 18-25 and DIN6 connector pin 2.

The complete device might look something like this:

With case open: