Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Feb 2005 04:06:57 -0800
From:      "David O'Brien" <obrien@freebsd.org>
To:        mw@kpnqwest.ch
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: logitec usb wireless mouse
Message-ID:  <20050206120657.GB22743@dragon.nuxi.com>
In-Reply-To: <200502060013.j160DGuc037637@smsgw.vianetworks.ch>
References:  <16901.13269.509134.918380@ran.psg.com> <200502060013.j160DGuc037637@smsgw.vianetworks.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 06, 2005 at 01:13:16AM +0100, mw@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@FreeBSD.org)



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