summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board/compal/keymap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/firmware/board/compal/keymap.h')
-rw-r--r--src/target/firmware/board/compal/keymap.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/target/firmware/board/compal/keymap.h b/src/target/firmware/board/compal/keymap.h
new file mode 100644
index 00000000..ce8f9c24
--- /dev/null
+++ b/src/target/firmware/board/compal/keymap.h
@@ -0,0 +1,27 @@
+/* keymap for the Compal C1xx phones */
+
+static const uint8_t keymap[] = {
+ [KEY_0] = 13,
+ [KEY_1] = 15,
+ [KEY_2] = 10,
+ [KEY_3] = 5,
+ [KEY_4] = 16,
+ [KEY_5] = 11,
+ [KEY_6] = 6,
+ [KEY_7] = 17,
+ [KEY_8] = 12,
+ [KEY_9] = 7,
+ [KEY_STAR] = 18,
+ [KEY_HASH] = 8,
+ [KEY_MENU] = 14,
+ [KEY_LEFT_SB] = 19,
+ [KEY_RIGHT_SB] = 9,
+ [KEY_UP] = 1,
+ [KEY_DOWN] = 2,
+ [KEY_LEFT] = 3,
+ [KEY_RIGHT] = 4,
+ [KEY_OK] = 0,
+ [KEY_POWER] = 24,
+ [KEY_MINUS] = 30, /* not existent */
+ [KEY_PLUS] = 31, /* not existent */
+};