$c/cpdump
and press Enter.
This generates a simple listing of all currently connected devices. The joystick should be one of them.
Example programs are provided in the 3DO:examples:Eventbroker folder and also on the 3DO InfoServer bulletin board (415-261-3405).