[BRLTTY] Filter keyboard keypresses on Linux

Mario Lang mlang at delysid.org
Sat Dec 15 17:21:18 EST 2007


Samuel Thibault <samuel.thibault at ens-lyon.org> writes:

> Mario Lang, le Sat 15 Dec 2007 22:29:27 +0100, a écrit :
>> Dave Mielke <dave at mielke.cc> writes:
>> 
>> > If we want most of the code to be common within the core then we probably need 
>> > a scheme for portabilizing key representations. Does one already exist or do we 
>> > need to invent it?
>> 
>> AIUI, what linux currently uses is derived from the HID
>> standard (Human Interface Devices).
>
> Mmm, what do you mean by "what linux uses"? Internally, Linux uses
> keycodes, which are derived from AT2 scancodes. For USB, it uses the
> usb_kbd_keycode[] array for translating from HID to keycodes.

In /usr/include/linux/input.h I find the following comment:

/*
 * Keys and buttons
 *
 * Most of the keys/buttons are modeled after USB HUT 1.12
 * (see http://www.usb.org/developers/hidpage).

-- 
CYa,
  Mario | Debian Developer <URL:http://debian.org/>
  .''`. | Get my public key via finger mlang at db.debian.org
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-      <URL:http://delysid.org/>  <URL:http://www.staff.tugraz.at/mlang/>


More information about the BRLTTY mailing list