From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <053d01c4c742$1a076e00$96fb7d50@SOMA> From: "boyd, rounin" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> References: <20041109223650.GA25207@SDF.LONESTAR.ORG> Subject: Re: [9fans] keyboard scan codes Date: Wed, 10 Nov 2004 17:26:51 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 010cce98-eace-11e9-9e20-41e7f4b1d025 > Is there a way (other than trial and error) to determine the scan code > of the button? the way i did this, 'cos i knew next to nothing about scan codes, was to modify the keyboard driver to spit scan codes. once i undertood what was going on i loaded up various maps to figure out the weird ones. iirc the codes go linearly, left to right, but there are some suprises.