Re: How-to use a USB joypad?
Le Ven 26 sep 03 à 22:19:45 +0200, Thierry Thomas [EMAIL PROTECTED] écrivait : On 26 sep 03 at 21:47:03 +0200, Nick Holley [EMAIL PROTECTED] wrote: What program are you trying to use? I know there are some issues with joysticks and gamepads on FreeBSD. For example, the joystick code was removed from zsnes due to problems, but there are no problems with snes9x. I don't know who exactly would have more information. But I don't think that it depends on the program: no more results with the sample perl routine or tuxracer. Nick Holley was right: I have upgraded libSDL to 1.2.6 (see http://www.freebsd.org/cgi/query-pr.cgi?pr=57475) and, with a minor patch to the joystick code, I can use my USB joystick in SDL programs (e.g. tuxracer). Next step: put a similar code in the other toolkits (plib, etc.)... -- Th. Thomas. pgp0.pgp Description: PGP signature
Re: How-to use a USB joypad?
Thierry Thomas wrote: Hello, I have got a USB joypad, and it is sensed by the system (either 4.9 or 5.1): uhid0: Microsoft Microsoft SideWinder Plug Play Game Pad, rev 1.00/1.01, addr 2, iclass 3/0 I have got a new device /dev/uhid0 and kldloaded joy.ko. When I run perl -e 'open(JOY,/dev/uhid0)||die;while(1) {sysread(JOY,$x,16);@j=unpack(,$x);print @j\n;sleep(1);}' (adapted from `man 4 joy'), it returns a list of numbers for each action on the pad, but nothing usable. I've tried to link /dev/joy0 - /dev/uhid0, but without success with several games. What am I missing? What program are you trying to use? I know there are some issues with joysticks and gamepads on FreeBSD. For example, the joystick code was removed from zsnes due to problems, but there are no problems with snes9x. I don't know who exactly would have more information. Nick ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How-to use a USB joypad?
On 26 sep 03 at 21:47:03 +0200, Nick Holley [EMAIL PROTECTED] wrote: What program are you trying to use? I know there are some issues with joysticks and gamepads on FreeBSD. For example, the joystick code was removed from zsnes due to problems, but there are no problems with snes9x. I don't know who exactly would have more information. Actually I'm trying to test the new versions of freeglut and TORCS, and my only machine able to run these programs (OpenGL) is a laptop, and I can only plug a USB joypad. But I don't think that it depends on the program: no more results with the sample perl routine or tuxracer. Regards, -- Th. Thomas [sorry for the previous bad manipulation]. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]