diff options
author | Joshua T <joshua@sonofone.net> | 2016-08-24 23:46:52 -0500 |
---|---|---|
committer | Joshua T <joshua@sonofone.net> | 2016-08-24 23:46:52 -0500 |
commit | 42fa91a57dad18ccc3f6bf308f50b3f1e882dadd (patch) | |
tree | dae1290be66b6af1d498b0cf68fbef44f90d02be /keyboards/hhkb/keymaps/shela/action_pseudo_lut.h | |
parent | cac69cb58029bf246b22038f034205afbedbc695 (diff) | |
parent | ad206155aa6f87de3fb9f0aefe60685ec12905a8 (diff) |
Merge remote-tracking branch 'upstream/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 |