summaryrefslogtreecommitdiffstats
path: root/keyboards/comet46/keymaps/satt/action_pseudo_lut.h
diff options
context:
space:
mode:
authorsatt99 <39004890+satt99@users.noreply.github.com>2018-07-09 23:46:09 +0900
committerDrashna Jaelre <drashna@live.com>2018-07-09 07:46:09 -0700
commit56b5e9f23d2e363404fa68af4fd73f8dd21beea1 (patch)
treeabb8e7554b69ab0c622d68538f94e0ad54ff805c /keyboards/comet46/keymaps/satt/action_pseudo_lut.h
parentdab0b35dc36b58be56c4e2a7682f32e6054a152c (diff)
Add Comet46 keyboard (#3342)
* Initial commit for Comet46 firmware * Update Comet46 README * Add readme to satt keymap of comet46 * Add default keymap for Comet46 * Fix broken link in readme * Delete redundant includes * Modify default keymap & fix LAYOUT macro * Modify satt keymap of Comet46
Diffstat (limited to 'keyboards/comet46/keymaps/satt/action_pseudo_lut.h')
-rw-r--r--keyboards/comet46/keymaps/satt/action_pseudo_lut.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/comet46/keymaps/satt/action_pseudo_lut.h b/keyboards/comet46/keymaps/satt/action_pseudo_lut.h
new file mode 100644
index 0000000000..681252440f
--- /dev/null
+++ b/keyboards/comet46/keymaps/satt/action_pseudo_lut.h
@@ -0,0 +1,15 @@
+#ifndef ACTION_PSEUDO_LUT_H
+#define ACTION_PSEUDO_LUT_H
+
+#define SHIFT_BIT_SIZE (0xE7 / 8 + 1) // 1bit per 1key
+
+#define IS_LSFT(kc) ((QK_LSFT & (kc)) == QK_LSFT)
+
+void action_pseudo_lut(keyrecord_t *, uint8_t, const uint16_t (*)[2]);
+uint16_t convert_keycode(const uint16_t (*)[2], uint16_t, bool);
+
+uint8_t get_shift_bit(uint16_t);
+void add_shift_bit(uint16_t);
+void del_shift_bit(uint16_t);
+
+#endif