aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/dts/layouts/common/numpad/24_key.dtsi
blob: c410a532851798c94f73c0d09cca6b98afed513d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <layouts/common/numpad/position_map.dtsi>
#include <physical_layouts.dtsi>

/ {
    layout_numpad_24_key: layout_numpad_24_key {
        compatible = "zmk,physical-layout";
        display-name = "24 Key Numpad";

        keys  //                     w   h    x    y     rot    rx    ry
            = <&key_physical_attrs 100 100    0    0       0     0     0>
            , <&key_physical_attrs 100 100  100    0       0     0     0>
            , <&key_physical_attrs 100 100  200    0       0     0     0>
            , <&key_physical_attrs 100 100  300    0       0     0     0>
            , <&key_physical_attrs 100 100    0  125       0     0     0>
            , <&key_physical_attrs 100 100  100  125       0     0     0>
            , <&key_physical_attrs 100 100  200  125       0     0     0>
            , <&key_physical_attrs 100 100  300  125       0     0     0>
            , <&key_physical_attrs 100 100    0  225       0     0     0>
            , <&key_physical_attrs 100 100  100  225       0     0     0>
            , <&key_physical_attrs 100 100  200  225       0     0     0>
            , <&key_physical_attrs 100 100  300  225       0     0     0>
            , <&key_physical_attrs 100 100    0  325       0     0     0>
            , <&key_physical_attrs 100 100  100  325       0     0     0>
            , <&key_physical_attrs 100 100  200  325       0     0     0>
            , <&key_physical_attrs 100 100  300  325       0     0     0>
            , <&key_physical_attrs 100 100    0  425       0     0     0>
            , <&key_physical_attrs 100 100  100  425       0     0     0>
            , <&key_physical_attrs 100 100  200  425       0     0     0>
            , <&key_physical_attrs 100 100  300  425       0     0     0>
            , <&key_physical_attrs 100 100    0  525       0     0     0>
            , <&key_physical_attrs 100 100  100  525       0     0     0>
            , <&key_physical_attrs 100 100  200  525       0     0     0>
            , <&key_physical_attrs 100 100  300  525       0     0     0>
            ;
    };
};

&layouts_common_numpad_position_map {
    layout_numpad_24_key {
        physical-layout = <&layout_numpad_24_key>;
        positions
            = < 0  1  2  3>
            , < 4  5  6  7>
            , < 8  9 10 11>
            , <12 13 14 15>
            , <16 17 18 19>
            , <20 21 22 23>
            ;
    };
};