We’re looking in to adding keyboard support to our product
for extended USB keyboards (ones that have cd player
type buttons on them). We have the scancodes we need
to look for but are unable to read any codes from the
For PS2 keyboards, we currently open /dev/kbd and read
in bytes. This gives us the scancodes. For USB, we try
opening /dev/usbkbd0 but it returns EOF immediately.
We can attach Input to that device and the keyboard
works just fine in the shell, but we can’t figure out
how to read in the scancodes.
Does anyone know how to read the scancodes in from
a usb keyboard device?
Please email replies.