logitec usb wireless mouse

David O'Brien obrien at freebsd.org
Sun Feb 6 04:06:59 PST 2005


On Sun, Feb 06, 2005 at 01:13:16AM +0100, mw at kpnqwest.ch wrote:
> > anyone have the logitech wireless mouse working and can send
> > a clue?  the keyboard is fine.  the mouse does the logitec
> > connect thing; but moving/clicking it does nothing.
> 
> Perhaps you ran into the same problem I had with the wireless mouse
> of the logitech dinovo keyboard. If that's the case, the following will help:
> 
> --- hid.c       6 Jan 2005 01:43:27 -0000       1.24
> +++ hid.c       6 Feb 2005 00:11:32 -0000
> @@ -374,8 +374,9 @@
>         int size, id;
>  
>         id = 0;
> +       bzero (&h, sizeof (h));
>         for (d = hid_start_parse(buf, len, 1<<k); hid_get_item(d, &h); )
> -               if (h.report_ID != 0)
> +               if (h.report_ID != 0 && !id)

Is the real magic the "&& !id"?  My read of the code doesn't see the need
for the bzero as hid_get_item should be filling 'h'.

-- 
-- David  (obrien at FreeBSD.org)


More information about the freebsd-current mailing list