#include <layouts/common/numpad/position_map.dtsi>
#include <physical_layouts.dtsi>

/ {
    layout_numpad_18_key_00: layout_numpad_18_key_00 {
        compatible = "zmk,physical-layout";
        display-name = "18 Key Numpad (00)";

        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  100       0     0     0>
            , <&key_physical_attrs 100 100  100  100       0     0     0>
            , <&key_physical_attrs 100 100  200  100       0     0     0>
            , <&key_physical_attrs 100 200  300  100       0     0     0>
            , <&key_physical_attrs 100 100    0  200       0     0     0>
            , <&key_physical_attrs 100 100  100  200       0     0     0>
            , <&key_physical_attrs 100 100  200  200       0     0     0>
            , <&key_physical_attrs 100 100    0  300       0     0     0>
            , <&key_physical_attrs 100 100  100  300       0     0     0>
            , <&key_physical_attrs 100 100  200  300       0     0     0>
            , <&key_physical_attrs 100 200  300  300       0     0     0>
            , <&key_physical_attrs 100 100    0  400       0     0     0>
            , <&key_physical_attrs 100 100  100  400       0     0     0>
            , <&key_physical_attrs 100 100  200  400       0     0     0>
            ;
    };
};

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