Date: Mon, 4 Feb 2008 16:39:17 +0100 From: Markus Brueffer <markus@FreeBSD.org> To: freebsd-usb@freebsd.org Subject: Re: Logitech xbox gamepad as a uhid Message-ID: <200802041639.24771.markus@FreeBSD.org> In-Reply-To: <1d3ed48c0801301147h77e5056h23eb73d0c4ddd1be@mail.gmail.com> References: <1d3ed48c0801301147h77e5056h23eb73d0c4ddd1be@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2548775.7SQpKFWNoo Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Mittwoch, 30. Januar 2008 20:47:48 schrieb Kevin Downey: > I have a wireless xbox (not xbox 360) gamepad that I would like to use > as a remote control for media stuff in X. I figure a first step in > that direction is to get it recognized as a uhid device. > > I find it hard to believe that I am the first person to do this on a > freebsd box, yet googling the only hits I get are about xbox360 > gamepad support. > > > uhub7: <Logitech Wingman Wireless Xbox Controller (hub), class 9/0, > rev 1.10/1.03, addr 2> on uhub1 > uhub7: 3 ports with 2 removable, bus powered > id->bInterfaceClass 0x58 > ugen0: <vendor 0x046d product 0xca84, class 0/0, rev 1.10/1.03, addr 3> on > uhub7 > > the "id->bInterfaceClass 0x58" is from a printf I added after line 208 > in /sys/dev/usb/uhid.c > > > /* The Xbox 360 gamepad doesn't use the HID class. */ > printf("id->bInterfaceClass 0x%x\n",id->bInterfaceClass); > if (id->bInterfaceClass !=3D UICLASS_VENDOR || > id->bInterfaceSubClass !=3D UISUBCLASS_XBOX360_CONTROLLER || > id->bInterfaceProtocol !=3D UIPROTO_XBOX360_GAMEPAD) > return (UMATCH_NONE); > > My idea was maybe I could just add a case for this controller. > Does anyone have any pointers(har har), besides "read the source" for > how to get this working? A first start would be to get it recognized by uhid(4). Please provide a=20 descriptor dump of the device using sysutils/udesc_dump from ports. Markus --nextPart2548775.7SQpKFWNoo Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHpzGs1I0Qcnj4qNQRAuZKAJ9g4lCJ1xUPeTIXmBkvltZieB3ZqwCff27s VuIbx2M5xLkzVqo8o/qSDQk= =OA8z -----END PGP SIGNATURE----- --nextPart2548775.7SQpKFWNoo--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802041639.24771.markus>