OK, this stuff turns out to be pretty simple, but only when you know how it all works. Here is a link to Information about the default linux joystick driver. This site includes a list of supported joysticks.
The gameport is not like a USB port. The gameport does not automatically notify the system when a joystick is plugged in or unplugged. Therefore something has to be done manually to notify the system to check what kind of joystick is attached. This is done by loading/reloading the kernel module "analog". I wrote a script called "jsreload" to do this.
Code:
#!/bin/sh
echo "Reload joystick module..."
echo -n "Root "
su -c "modprobe -w -r analog; modprobe analog"
I wrote another script simply to dump out the status of whether the necessary kernel modules are loaded and calls a C program to dump the names of the attached joysticks. Instead of posting those here, you can run the following to check if the analog kernel module has detected joysticks.