|
发表于 2003-5-23 08:31:58
|
显示全部楼层
http://www.smartcomputing.com/editorial/article.asp?article=articles%2F2002%2Fs1307%2F56s07web%2F56s07web%2Easp
USB Joysticks & Linux Mandrake 8.2
Although Linux isn抰 known as a gaming platform, most Linux distributions come with a nice assortment of games. Anyone who has gotten hand cramps steering Tux down a snowy hill using a keyboard knows you can抰 beat a joystick for certain games. The problem is that it takes a little hacking to get Linux to work well with a joystick.
To keep things as simple as possible, we抣l focus on getting a USB (Universal Serial Bus) joystick up and running in Mandrake 8.2. Those using gameport joysticks or running a different distribution may still find portions of this tutorial relevant.
USB Support
In order to get a USB joystick to work properly, Linux must first recognize your system抯 USB port. This shouldn抰 be a problem if your distribution is less than a year old. USB support should be enabled by default, so you can move on to joystick support.
Joystick Support
In order for Linux to recognize your joystick, you need to load a kernel module. A kernel module is similar to a Windows device driver, but it抯 loaded directly into the Linux kernel. Kernel modules can be added or removed from the kernel while the system is running. As root, type modprobe joydev to load the joystick module into the Linux kernel. If you want Linux to load the joydev module each time you reboot, open the /etc/modules file in a text editor and type joydev. You抣l need to be root to save the changes.
For some games, such as Tuxracer, a keyboard just can抰 compare to a joystick.
Get Games To Work
Some games, such as Tuxracer, require no further configuration and should now work with your joystick. In order to use a joystick with some.... |
|