diff --git a/scripts/globals/layout_config.gd b/scripts/globals/layout_config.gd index 124d41f..956d8de 100644 --- a/scripts/globals/layout_config.gd +++ b/scripts/globals/layout_config.gd @@ -18,13 +18,15 @@ var layouts: Dictionary[String, AbstractLayout] = { # LayoutJD40.name_static(): LayoutJD40.new(), # LayoutPlanck.name_static(): LayoutPlanck.new(), "ansi-104.json": LayoutKLE.new("res://scripts/layouts/kle/ansi-104.json"), + "ansi-104-big-enter.json": + LayoutKLE.new("res://scripts/layouts/kle/ansi-104-big-enter.json"), } func _ready() -> void: var err := _load_config() if err != OK: - printerr("layout config not loaded.....") + print("layout config not loaded.....") _set_defaults() is_configuring = true # _set_defaults() @@ -92,7 +94,7 @@ func _load_config() -> Error: var err := config.load(CONFIG_PATH) if err == ERR_FILE_NOT_FOUND: - printerr("layout config file not found") + print("layout config file not found") return FAILED if err != OK: diff --git a/scripts/layouts/kle/ansi-104-big-enter.json b/scripts/layouts/kle/ansi-104-big-enter.json new file mode 100644 index 0000000..72d437f --- /dev/null +++ b/scripts/layouts/kle/ansi-104-big-enter.json @@ -0,0 +1,216 @@ +[ + { + "name": "ANSI 104 (big enter)" + }, + [ + "Esc", + { + "x": 1 + }, + "F1", + "F2", + "F3", + "F4", + { + "x": 0.5 + }, + "F5", + "F6", + "F7", + "F8", + { + "x": 0.5 + }, + "F9", + "F10", + "F11", + "F12", + { + "x": 0.25 + }, + "PrtSc", + "Scroll Lock", + "Pause\nBreak" + ], + [ + { + "y": 0.5 + }, + "~\n`", + "!\n1", + "@\n2", + "#\n3", + "$\n4", + "%\n5", + "^\n6", + "&\n7", + "*\n8", + "(\n9", + ")\n0", + "_\n-", + "+\n=", + "|\n\\", + "Back Space", + { + "x": 0.25 + }, + "Insert", + "Home", + "PgUp", + { + "x": 0.25 + }, + "Num Lock", + "/", + "*", + "-" + ], + [ + { + "w": 1.5 + }, + "Tab", + "Q", + "W", + "E", + "R", + "T", + "Y", + "U", + "I", + "O", + "P", + "{\n[", + "}\n]", + { + "w": 1.5, + "h": 2, + "w2": 2.25, + "h2": 1, + "x2": -0.75, + "y2": 1 + }, + "Enter", + { + "x": 0.25 + }, + "Delete", + "End", + "PgDn", + { + "x": 0.25 + }, + "7\nHome", + "8\n↑", + "9\nPgUp", + { + "h": 2 + }, + "+" + ], + [ + { + "w": 1.75 + }, + "Caps Lock", + "A", + "S", + "D", + "F", + "G", + "H", + "J", + "K", + "L", + ":\n;", + "\"\n'", + { + "x": 5.75 + }, + "4\n←", + "5", + "6\n→" + ], + [ + { + "w": 2.25 + }, + "Shift", + "Z", + "X", + "C", + "V", + "B", + "N", + "M", + "<\n,", + ">\n.", + "?\n/", + { + "w": 2.75 + }, + "Shift", + { + "x": 1.25 + }, + "↑", + { + "x": 1.25 + }, + "1\nEnd", + "2\n↓", + "3\nPgDn", + { + "h": 2 + }, + "Enter" + ], + [ + { + "w": 1.25 + }, + "Ctrl", + { + "w": 1.25 + }, + "Win", + { + "w": 1.25 + }, + "Alt", + { + "a": 7, + "w": 6.25 + }, + "", + { + "a": 4, + "w": 1.25 + }, + "Alt", + { + "w": 1.25 + }, + "Win", + { + "w": 1.25 + }, + "Menu", + { + "w": 1.25 + }, + "Ctrl", + { + "x": 0.25 + }, + "←", + "↓", + "→", + { + "x": 0.25, + "w": 2 + }, + "0\nIns", + ".\nDel" + ] +] \ No newline at end of file diff --git a/scripts/layouts/layout_kle.gd b/scripts/layouts/layout_kle.gd index d7e2d62..2e01377 100644 --- a/scripts/layouts/layout_kle.gd +++ b/scripts/layouts/layout_kle.gd @@ -13,6 +13,7 @@ const LABEL_TO_KEYCODE_MAP: Dictionary[String, Key] = { ".": KEY_PERIOD, "/": KEY_SLASH, "Esc": KEY_ESCAPE, + "Back Space": KEY_BACKSPACE, "Caps Lock": KEY_CAPSLOCK, "Win": KEY_META, "PrtSc": KEY_PRINT,