[haiku-development] Re: Adding new keymap and keyboard layout

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 01 Dec 2009 22:50:19 +0100 CET

> Hello,
>
> I would like to add a new keymap and a new keyboard layout but I did
> not
> find all information needed. I am able to edit the keymap via drag'n
> drop
> on the keymap preference app, save it, and convert it to ascii with
> "keymap
> -d" for deeper edition.

If you have an existing keymap for the linux console you can try to use
the script I wrote for the Bépo one:
http://revolf.free.fr/beos/bepo-haiku.zip

> I see that keycodes like "0xC382" are used for non ascii keys. Is
> there a
> list of all possible values somewhere ?

It's actually an hex representation of the character as UTF-8
(not the UCS-2 value)
So it's actually 0xC3 0x82 which is U+00C2.

> Also is there any documentation on the layout format ? I think I
> understand the general idea, but several parts are quite cryptic to
> me:
> - ":-; :+4" ?
> - "d$d" : what is "d" compared to "$" (this last one is a variable if
> I am
> correct).

??
There are no variable in there.

François.

Other related posts: