summaryrefslogtreecommitdiff
path: root/keyboards/hhkb/keymaps/shela/action_pseudo_lut.h
diff options
context:
space:
mode:
authorStephen Christie2016-09-19 18:05:58 -0400
committerStephen Christie2016-09-19 18:05:58 -0400
commit57a6828a7a73d7b7c3dd9693e04d6873e2e3d1c2 (patch)
treebdabbdbdd9fd6de500728721d1865058468871e3 /keyboards/hhkb/keymaps/shela/action_pseudo_lut.h
parentbf2b260429dbc015d49d005065a37441c8f15753 (diff)
parent5f9c2f63ffb2c58db73e67442134be58bfe2c129 (diff)
Merge branch 'master' of http://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'keyboards/hhkb/keymaps/shela/action_pseudo_lut.h')
-rw-r--r--keyboards/hhkb/keymaps/shela/action_pseudo_lut.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/hhkb/keymaps/shela/action_pseudo_lut.h b/keyboards/hhkb/keymaps/shela/action_pseudo_lut.h
new file mode 100644
index 000000000..681252440
--- /dev/null
+++ b/keyboards/hhkb/keymaps/shela/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