[Sony Ericsson XPERIA X10 Mini] Emperor.dk:
WOHA.. it's almost there i think. Great inspiration Tom.K

Tried it... tweaked it a little... I allmost got it working..

Tried to re-map the scancodes.. but no... FCs and wrong mapping.

Here is my work, for anyone to try and help.

Is it possible we need to map keys that does not exist, just to satisfy some other part of the HW-keyboard stuff??

scancode_mapping.xml

<?xml version="1.0" encoding="utf-8"?>
<Keyboard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../scancode_mapping.xsd">
<!-- First row -->
<Row>
<MappingKey scancode="16" id="C1.1" />
<MappingKey scancode="17" id="C1.2" />
<MappingKey scancode="18" id="C1.3" />
<MappingKey scancode="19" id="C1.4" />
<MappingKey scancode="20" id="C1.5" />
<MappingKey scancode="21" id="C1.6" />
<MappingKey scancode="22" id="C1.7" />
<MappingKey scancode="23" id="C1.8" />
<MappingKey scancode="24" id="C1.9" />
<MappingKey scancode="25" id="C1.10" />
</Row>
<!-- Second row -->
<Row>
<MappingKey scancode="30" id="C2.1" />
<MappingKey scancode="31" id="C2.2" />
<MappingKey scancode="32" id="C2.3" />
<MappingKey scancode="33" id="C2.4" />
<MappingKey scancode="34" id="C2.5" />
<MappingKey scancode="35" id="C2.6" />
<MappingKey scancode="36" id="C2.7" />
<MappingKey scancode="37" id="C2.8" />
<MappingKey scancode="38" id="C2.9" />
<MappingMetaKey scancode="14" id="META_DELETE" />
</Row>
<!-- Third row -->
<Row>
<MappingKey scancode="44" id="C3.1" />
<MappingKey scancode="45" id="C3.2" />
<MappingKey scancode="46" id="C3.3" />
<MappingKey scancode="47" id="C3.4" />
<MappingKey scancode="48" id="C3.5" />
<MappingKey scancode="49" id="C3.6" />
<MappingKey scancode="50" id="C3.7" />
<MappingKey scancode="51" id="C3.8" />
<MappingKey scancode="52" id="C3.9" />
<MappingMetaKey scancode="28" id="META_ENTER" />
</Row>
<!-- Fourth row -->
<Row>
<MappingMetaKey scancode="56" id="META_ALT_LEFT" />
<MappingMetaKey scancode="42" id="META_SHIFT_LEFT" />
<MappingKey scancode="214" id="C4.1" />
<MappingMetaKey scancode="105" id="META_DPAD_LEFT" />
<MappingMetaKey scancode="57" id="META_SPACE" />
<MappingMetaKey scancode="15" id="META_SPACE" />
<MappingMetaKey scancode="106" id="META_DPAD_RIGHT" />
<MappingKey scancode="40" id="C4.2" />
<MappingMetaKey scancode="216" id="META_SYMBOL" />
</Row>
<!-- Back key -->
<Row>
<MappingMetaKey scancode="158" id="META_BACK" />
</Row>
</Keyboard>

And tried this layout

qwerty-no-dk.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Keyboard>
<Keyboard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../schemas/keyprint.xsd">
<Script name="latin">
<Layout type="unshifted">
<!-- First row -->
<Row>
<Key id="C1.1" data="q" />
<Key id="C1.2" data="w" />
<Key id="C1.3" data="e" />
<Key id="C1.4" data="r" />
<Key id="C1.5" data="t" />
<Key id="C1.6" data="y" />
<Key id="C1.7" data="u" />
<Key id="C1.8" data="i" />
<Key id="C1.9" data="o" />
<Key id="C1.10" data="p" />
</Row>
<!-- Second row -->
<Row>
<Key id="C2.1" data="a" />
<Key id="C2.2" data="s" />
<Key id="C2.3" data="d" />
<Key id="C2.4" data="f" />
<Key id="C2.5" data="g" />
<Key id="C2.6" data="h" />
<Key id="C2.7" data="j" />
<Key id="C2.8" data="k" />
<Key id="C2.9" data="l" />
<MetaKey id="META_DELETE" />
</Row>
<!-- Third row -->
<Row>
<Key id="C3.1" data="z" />
<Key id="C3.2" data="x" />
<Key id="C3.3" data="c" />
<Key id="C3.4" data="v" />
<Key id="C3.5" data="b" />
<Key id="C3.6" data="n" />
<Key id="C3.7" data="m" />
<Key id="C3.8" data="Ã¸" />
<Key id="C3.9" data="Ã¦" />
<MetaKey id="META_ENTER" />
</Row>
<!-- Fourth row -->
<Row>
<MetaKey id="META_ALT_LEFT" />
<MetaKey id="META_SHIFT_LEFT" />
<Key id="C4.1" data="." />
<MetaKey id="META_DPAD_LEFT" />
<MetaKey id="META_SPACE" data=" " />
<MetaKey id="META_SPACE" data=" " />
<MetaKey id="META_DPAD_RIGHT" />
<Key id="C4.2" data="Ã¥" />
<MetaKey id="META_SYMBOL" />
</Row>
</Layout>
<Layout type="shifted">
<!-- First row -->
<Row>
<Key id="C1.1" data="Q" />
<Key id="C1.2" data="W" />
<Key id="C1.3" data="E" />
<Key id="C1.4" data="R" />
<Key id="C1.5" data="T" />
<Key id="C1.6" data="Y" />
<Key id="C1.7" data="U" />
<Key id="C1.8" data="I" />
<Key id="C1.9" data="O" />
<Key id="C1.10" data="P" />
</Row>
<!-- Second row -->
<Row>
<Key id="C2.1" data="A" />
<Key id="C2.2" data="S" />
<Key id="C2.3" data="D" />
<Key id="C2.4" data="F" />
<Key id="C2.5" data="G" />
<Key id="C2.6" data="H" />
<Key id="C2.7" data="J" />
<Key id="C2.8" data="K" />
<Key id="C2.9" data="L" />
<MetaKey id="META_DELETE" />
</Row>
<!-- Third row -->
<Row>
<MetaKey id="META_SHIFT_LEFT" />
<Key id="C3.1" data="Z" />
<Key id="C3.2" data="X" />
<Key id="C3.3" data="C" />
<Key id="C3.4" data="V" />
<Key id="C3.5" data="B" />
<Key id="C3.6" data="N" />
<Key id="C3.7" data="M" />
<Key id="C3.8" data="Ã˜" />
<Key id="C3.9" data="Ã†" />
<MetaKey id="META_ENTER" />
</Row>
<!-- Fourth row -->
<Row>
<MetaKey id="META_ALT_LEFT" />
<MetaKey id="META_SHIFT_LEFT" />
<Key id="C4.1" data="." />
<MetaKey id="META_DPAD_LEFT" />
<MetaKey id="META_SPACE" data=" " />
<MetaKey id="META_SPACE" data=" " />
<MetaKey id="META_DPAD_RIGHT" />
<Key id="C4.2" data="Ã…" />
<MetaKey id="META_SYMBOL" />
</Row>
</Layout>
<Layout type="associated">
<!-- First row -->
<Row>
<EmptyKey id="C1.1" />
<Key id="C1.2" data=""" />
<Key id="C1.3" data="&apos;" />
<Key id="C1.4" data="1" />
<Key id="C1.5" data="2" />
<Key id="C1.6" data="3" />
<Key id="C1.7" data="*" />
<Key id="C1.8" data="+" />
<Key id="C1.9" data="/" />
<Key id="C1.10" data="@" />
</Row>
<!-- Second row -->
<Row>
<EmptyKey id="C2.1" />
<Key id="C2.2" data="&" />
<Key id="C2.3" data=";" />
<Key id="C2.4" data="4" />
<Key id="C2.5" data="5" />
<Key id="C2.6" data="6" />
<Key id="C2.7" data="#" />
<Key id="C2.8" data="(" />
<Key id="C2.9" data=")" />
<MetaKey id="META_DELETE" />
</Row>
<!-- Third row -->
<Row>
<EmptyKey id="C3.1" />
<Key id="C3.2" data="%" />
<Key id="C3.3" data="," />
<Key id="C3.4" data="7" />
<Key id="C3.5" data="8" />
<Key id="C3.6" data="9" />
<Key id="C3.7" data="0" />
<Key id="C3.8" data="!" />
<Key id="C3.9" data="?" />
<MetaKey id="META_ENTER" />
</Row>
<!-- Fourth row -->
<Row>
<MetaKey id="META_ALT_LEFT" />
<MetaKey id="META_SHIFT_LEFT" />
<Key id="C4.1" data=":" />
<MetaKey id="META_DPAD_LEFT" />
<MetaKey id="META_SPACE" data=" " />
<MetaKey id="META_SPACE" data=" " />
<MetaKey id="META_DPAD_RIGHT" />
<Key id="C4.2" data="-" />
<MetaKey id="META_SYMBOL" />
</Row>
</Layout>
</Script>
</Keyboard>

The complete key-codes for X10MP

Row 1

q: 16
w: 17
e: 18
r: 19
t: 20
y: 21
u: 22
i: 23
o: 24
p: 25

Row 2

a: 30
s: 31
d: 32
f: 33
g: 34
h: 35
j: 36
k: 37
l: 38
delete: 14

Row 3

z: 44
x: 45
c: 46
v: 47
b: 48
n: 49
m: 50
ø: 51
æ: 52
enter: 28

Row 4

Blue: 56
L-Shift: 42
.: 214
<: 105
L-Space: 57
R-Space: 15
>: 106
å: 40
Sym: 216

Other hardware keys

vol-up: 115
vol-down: 114
menu: 139
home: 102
back: 158
power: 107