There are things like the "Adafruit Arcade Bonnet for Raspberry Pi" that could simply adapt a real Coco joystick to a Pi