diff --git a/inputd/build.sh b/inputd/build.sh index d2e5891..e2fb71d 100755 --- a/inputd/build.sh +++ b/inputd/build.sh @@ -1,3 +1,4 @@ #!/bin/sh +php map-to-c.php factory-keymap.txt > kmap.h gcc -o ppkbd main.c || exit 1 diff --git a/inputd/map-to-c.php b/inputd/map-to-c.php index 2455de5..7d4eb3a 100644 --- a/inputd/map-to-c.php +++ b/inputd/map-to-c.php @@ -21,7 +21,7 @@ */ $pmap = file_get_contents("physical-map.txt"); -$kmap = file_get_contents("factory-keymap.txt"); +$kmap = file_get_contents($argv[1]); // high nibble = row, low nibble col $el_phys_map = [];