Subject: Playing snes9x with USB gamepad now!
To: None <tech-pkg@netbsd.org>
From: Rui-Xiang Guo <rxg@ms25.url.com.tw>
List: port-i386
Date: 01/18/2002 01:57:49
Hi, all folks, and game boys. :)

I made some patches for snes9x package to support USB gamepad.
Because of the patches are a bit large, I put it on:
	http://residence.educities.edu.tw/rxghome
I use the value that be reported by hid_get_data() only be tested with
my USB gamepad to control snes9x.
So if you feel insterest in this, please try it. :)
And I think it should be fixed easily if you get problem.

NOTE: When I compiled it with /usr/include/dev/usbusb.h, it complained about
line 594: parse error. So I copied it into
/usr/pkgsrc/emulators/snes9x/work/release/unix dir, removed line 594 and
included it then I could finish compiling. Don't know why? :(

The USB gamepad supporting is from the joy_usb.c driver of xmame which
be written by Krister Walfridsson, thanks for his codes! :)

At last, I find the sound buffer(with -B option) will cause the games
delay. If I don't use this option, the sound is broken with my auvia0. :(
Is this a bug of auvia driver? Other drivers also get this problem?

Hope you enjoy it!

Regards
-rxg