From 1d1f469663317ac46df8db85ed0fb28b279b148b Mon Sep 17 00:00:00 2001 From: Kael Date: Mon, 8 Jul 2024 18:41:53 +1000 Subject: [PATCH] Add ENGRAM key layout --- src/main/kotlin/org/acejump/input/KeyLayout.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/org/acejump/input/KeyLayout.kt b/src/main/kotlin/org/acejump/input/KeyLayout.kt index d1e89892..9afddf2d 100644 --- a/src/main/kotlin/org/acejump/input/KeyLayout.kt +++ b/src/main/kotlin/org/acejump/input/KeyLayout.kt @@ -21,7 +21,8 @@ enum class KeyLayout(internal val rows: Array, priority: String) { QGMLWB(arrayOf("1234567890", "qgmlwbyuv", "dstnriaeoh", "zxcfjkp"), priority = "naterisodhfkcpjxzlymuwbgvq5849673210"), NORMAN(arrayOf("1234567890", "qwdfkjurl", "asetgynioh", "zxcvbpm"), priority = "tneigysoahbvpcmxzjkufrdlwq5849673210"), AZERTY(arrayOf("1234567890", "azertyuiop", "qsdfghjklm", "wxcvbn"), priority = "fjghdkslqvncmbxwrutyeizoap5849673210"), - CANARY(arrayOf("1234567890", "wlypbzfou", "crstgmneia", "qjvdkxh"), priority = "tngmseracidxvhkjqpfbzyoluw5849673210"); + CANARY(arrayOf("1234567890", "wlypbzfou", "crstgmneia", "qjvdkxh"), priority = "tngmseracidxvhkjqpfbzyoluw5849673210"), + ENGRAM(arrayOf("1234567890", "byouldwvz", "cieahtsnq", "gxjkrmfp"), priority = "ahetiscnkrjmodulywxfgpbvqz3847295610"); internal val allChars = rows.joinToString("").toCharArray().apply(CharArray::sort).joinToString("") internal val allPriorities = priority.mapIndexed { index, char -> char to index }.toMap()