In an effort to make FreeBSD even more (un)productive, I added in support for FreeBSD's joystick driver to Koules, a game which can be found in the ports collection at /usr/ports/games/koules. To compile the game with this patch follow this sequence:
# cd /usr/ports/games/koules # make patch # cd work/koules-1.4 # fetch http://www.cslab.vt.edu/~jobaldwi/koules-bsdjoy.tgz # mkdir temp # tar xvfzC koules-bsdjoy.tgz temp/ # patch client.c < temp/client.c.patch # patch koules.c < temp/koules.c.patch # patch koules.h < temp/koules.h.patch # patch menu.c < temp/menu.c.patch # patch xlib/init.c < temp/xlib_init.c.patch # cp temp/freebsd_joystick.h . Edit Iconfig and uncomment the '#define JOYSTICK' line, then cd back to /usr/ports/games/koules, and 'make install' as usual. One problem so far: it doesn't detect to make sure a joystick is at a port. Please send any suggestions, comments, etc. as I'd like to get this tested on more than just my box before I send it to the author as the authoritative FreeBSD joystick support. :) --- John Baldwin <jobal...@vt.edu> -- http://members.freedomnet.com/~jbaldwin/ PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.freebsd.org To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message