From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bitmessage.ch ([146.228.112.252]) by ur; Thu Sep 29 23:45:25 EDT 2016 dkim-signature: v=1; a=rsa-sha256; d=bitmessage.ch; s=mail; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type:In-Reply-To:References; bh=ckf6VfjCTGmIMhpMoeA2g1u85z+u9M5AIPTZ/LGw9S4=; b=a4RqwMZX/+0YjWaXRk+yoD3GGV1FUBxbYGNsePRf6J1ZF3o2MmI3y5X0qso85F50BnaaLyj8+d3LfNttB/Fh9Rou9G2RHuFrLeDw88Ii2EclXIy8cD28bh+7dRqiNrLhgK6WbInGB5n+IP1D3aMfabyTGqheMZqsWybOETVoWc4= Received: from speakerbox (BITMESSAGE [127.0.0.1]) by mail.bitmessage.ch with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Fri, 30 Sep 2016 05:44:49 +0200 Date: Thu, 29 Sep 2016 20:47:41 -0700 From: lemon@bitmessage.ch To: 9front@9front.org Subject: Re: [9front] Middle button on usb mice Message-ID: <20160930034741.GA2201@speakerbox> References: <20160928021342.GA2003@speakerbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.0 (2016-08-17) List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: object-oriented reduce/map reduce/map enhancement-aware configuration database > diff -r 38db1b2cd29e sys/src/cmd/nusb/kb/kb.c > --- a/sys/src/cmd/nusb/kb/kb.c Thu Sep 22 11:04:43 2016 +0200 > +++ b/sys/src/cmd/nusb/kb/kb.c Wed Sep 28 16:20:13 2016 +0200 > @@ -234,8 +234,7 @@ > for(i=l[UsagMin]; i<=l[UsagMax] && l[UsgCnt] < Nu; i++) > l[Nl + l[UsgCnt]++] = i; > for(i=0; i - if(i < l[UsgCnt]) > - l[Usage] = l[Nl + i]; > + l[Usage] = i < l[UsgCnt] ? l[Nl + i] : 0; > (*f)(t, v, g, l, c, a); > } > break; Thanks for giving it a shot. It compiles cleanly but did not fix the issue and when running nusb/kb -ddd N I had the same output as before. If there's any more information I can share that'll help, let me know. -- lemon