Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2003 15:47:03 -0400
From:      Nick Holley <nickpub@imap.cc>
To:        questions@freebsd.org
Subject:   Re: How-to use a USB joypad?
Message-ID:  <3F7497B7.3010006@imap.cc>
In-Reply-To: <26696831.59rnEVNmBy@graf.pompo.net>
References:  <26696831.59rnEVNmBy@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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("iiii",$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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F7497B7.3010006>