9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] keyboard scan codes
@ 2004-11-09 22:36 Heiko Dudzus
  2004-11-10 16:26 ` boyd, rounin
  0 siblings, 1 reply; 4+ messages in thread
From: Heiko Dudzus @ 2004-11-09 22:36 UTC (permalink / raw)
  To: 9fans

The today posts about kbmaps reminded of my plan to write one for
german keyboards.

I've finished that so far, but there is one button which I don't know
the scan code of.

It doesn't produce a character. It seems as if it produces a scan code
which isn't used by us keyboards (and is mapped to 0x0 obviously).

Is there a way (other than trial and error) to determine the scan code
of the button?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] keyboard scan codes
  2004-11-09 22:36 [9fans] keyboard scan codes Heiko Dudzus
@ 2004-11-10 16:26 ` boyd, rounin
  2004-11-10 20:31   ` Heiko Dudzus
  0 siblings, 1 reply; 4+ messages in thread
From: boyd, rounin @ 2004-11-10 16:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> 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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] keyboard scan codes
  2004-11-10 16:26 ` boyd, rounin
@ 2004-11-10 20:31   ` Heiko Dudzus
  2004-11-10 20:34     ` boyd, rounin
  0 siblings, 1 reply; 4+ messages in thread
From: Heiko Dudzus @ 2004-11-10 20:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

boyd, rounin wrote:
> iirc the codes go linearly, left to right, but there are some suprises.

This button was one of those surprises. ;-|
It sends 86 although its 'neighbours' send 43 and 44. 

(Finally, trial and error was the quickest way for me)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] keyboard scan codes
  2004-11-10 20:31   ` Heiko Dudzus
@ 2004-11-10 20:34     ` boyd, rounin
  0 siblings, 0 replies; 4+ messages in thread
From: boyd, rounin @ 2004-11-10 20:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> (Finally, trial and error was the quickest way for me)

that's what i found.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-10 20:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 22:36 [9fans] keyboard scan codes Heiko Dudzus
2004-11-10 16:26 ` boyd, rounin
2004-11-10 20:31   ` Heiko Dudzus
2004-11-10 20:34     ` boyd, rounin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).