summaryrefslogtreecommitdiff
path: root/hhkb/keymap.h
diff options
context:
space:
mode:
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 0000000000..be78609e61
--- /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