summaryrefslogtreecommitdiff
path: root/hhkb/keymap.h
diff options
context:
space:
mode:
authortmk2010-10-14 17:36:00 +0900
committertmk2010-10-15 11:09:57 +0900
commit54b5bafaacf0d7863b7bdb84dd69cbc80db77956 (patch)
tree38cf278aebedf9c35bf09c418d2b9d09bc611257 /hhkb/keymap.h
parent82637ded2737bfd80a2c1b85c0a9ae0b6fd33bd7 (diff)
add directories for each keyboard: hhkb, macway
Diffstat (limited to 'hhkb/keymap.h')
-rw-r--r--hhkb/keymap.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/hhkb/keymap.h b/hhkb/keymap.h
new file mode 100644
index 000000000..be78609e6
--- /dev/null
+++ b/hhkb/keymap.h
@@ -0,0 +1,20 @@
+#ifndef KEYMAP_H
+#define KEYMAP_H 1
+
+#include <stdint.h>
+#include <stdbool.h>
+#include "usb_keycodes.h"
+
+
+#define MATRIX_ROWS 8
+#define MATRIX_COLS 8
+
+
+extern int current_layer;
+extern bool key_sent;
+
+
+int get_layer(void);
+uint8_t get_keycode(int layer, int row, int col);
+
+#endif