diff options
author | Olivier <olivier@gid0.org> | 2016-08-20 18:07:02 +0200 |
---|---|---|
committer | Olivier <olivier@gid0.org> | 2016-08-20 18:07:02 +0200 |
commit | 009ab77d3e26bd348e45a9a8102b2737c9367979 (patch) | |
tree | b01491320736c818584098c4b7a6dce8de53f405 /keyboards/hhkb/keymaps/shela/action_pseudo_lut.h | |
parent | 4cfb262faab653247f4d66d44bf5f3339d82bd36 (diff) | |
parent | a3f726174c0f8f358f7970767a1bf743fd9ad761 (diff) |
Merge https://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.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 |