diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-08-12 14:43:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-12 14:43:04 -0400 |
commit | 11d4784d3a9105780aef5835186564b7e6ee6e89 (patch) | |
tree | 12f8d2d08dc8d20a23cd794ec4d33e3b9f314284 /keyboards/hhkb/keymaps/shela/action_pseudo_lut.h | |
parent | c6ec63eac3a88083b40ce099663cd4e580a7a327 (diff) | |
parent | 11e23fd3fdbe86ff85b2be7783c46d4360b07360 (diff) | |
download | firmware-11d4784d3a9105780aef5835186564b7e6ee6e89.tar.gz firmware-11d4784d3a9105780aef5835186564b7e6ee6e89.tar.bz2 firmware-11d4784d3a9105780aef5835186564b7e6ee6e89.zip |
Merge pull request #622 from shelaf/master
My HHKB layout
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 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 |