diff options
author | di0ib <git@porkhash.net> | 2016-08-14 10:58:22 -1000 |
---|---|---|
committer | di0ib <git@porkhash.net> | 2016-08-14 10:58:22 -1000 |
commit | b4218a2b3e928468110eb034fbac61631b71d30d (patch) | |
tree | 7d5f318b5bc81b01bf7a97e95eba6c65b2feacec /keyboards/hhkb/keymaps/shela/action_pseudo_lut.h | |
parent | c6c2c3fc14736e4d226c5f410d8c3faf3d36629f (diff) | |
parent | 6323f3d1e74350ef52dddc1f31d8b36ba637d254 (diff) |
Merge remote-tracking branch 'refs/remotes/jackhumbert/master'
Diffstat (limited to 'keyboards/hhkb/keymaps/shela/action_pseudo_lut.h')
-rw-r--r-- | keyboards/hhkb/keymaps/shela/action_pseudo_lut.h | 15 |
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 0000000000..681252440f --- /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 |