diff options
author | Toni <jeder@mail1a.de> | 2016-08-13 09:24:24 +0200 |
---|---|---|
committer | Toni <jeder@mail1a.de> | 2016-08-13 09:24:24 +0200 |
commit | e0aa2169055f554a3cb87208b1e73a6b2707405b (patch) | |
tree | 6c74a1f7284f385b99a231ef0c1c805fab1083e5 /keyboards/hhkb/keymaps/shela/action_pseudo_lut.h | |
parent | cafa528b88c097f02ae92a5b15b015f5653cefe7 (diff) | |
parent | 098951905d527c19043de75ef262ac9679ec452b (diff) | |
download | qmk_firmware-e0aa2169055f554a3cb87208b1e73a6b2707405b.tar.gz qmk_firmware-e0aa2169055f554a3cb87208b1e73a6b2707405b.zip |
Merge remote-tracking branch 'origin/master' into iso_split_rshift
update from Upstream
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 |