summaryrefslogtreecommitdiff
path: root/app/src/hid.c
AgeCommit message (Collapse)Author
2021-01-24feature(modifiers): add explicit modifiersOkke Formsma
this makes LS(LEFT_CONTROL) work as if shift and control were both pressed explicitly. Previously, the left shift would have been released as soon as another key was pressed. The implicit behavior is useful in case of LS(NUMBER_1) when rolling over to other keys. Also see #361.
2021-01-22feat(grave-escape): implement grave-escapeOkke Formsma
closes #85
2021-01-15fix(hid): Clear all matching usages, not just first.Pete Johanson
* If various events get dropped, we can end up with duplicate codes in our report, so tweak to ensure we look for all matches and clear them when we have a keycode released.
2020-12-28refactor(app): replace zmk_mod_flags with zmk_mod_flags_tinnovaker
Aligns with typedef _t convention. PR: #531
2020-12-28refactor(app): replace zmk_mod with zmk_mod_tinnovaker
Aligns with typedef _t convention. PR: #531
2020-12-28refactor(app): replace zmk_key with zmk_key_tinnovaker
Aligns with typedef _t convention. PR: #531
2020-11-22refactor(hid): replace `kp_report` with `keyboard_report`innovaker
Aligns with other existing conventions.
2020-11-21refactor: change `keypad` to `keyboard`innovaker
The application usage used by report 1 is `HID_USAGE_GD_KEYBOARD`. Moreover, the `keys` usage page (0x07) that primarily feeds into this report is predominantly keyboard codes. The rest of the system should align with this naming convention.
2020-11-10refactor(app): Remove obsolete include's of `hid_usage_pages.h`innovaker
This should've been done in eff1b8223b5010d526914530c5d1d469eff356df.
2020-11-05refactor(keys): Unify usage page.Pete Johanson
* Remove need for separate `&cp` behavior, but keep it for now for backward compat. * Refactor sensor inc/dec as well.
2020-11-03refactor: Replace superseded key namesinnovaker
Replace deprecated key names (LCTL, NUM_0, NUM_1). Replace abbreviated names with fully qualified names (LCTL, RGUI, NUM_0, NUM_1). Follow-up to #21.
2020-11-03refactor(hid): Mod defines in dedicated header.Pete Johanson
2020-11-03initial implementation for modifiersOkke Formsma
https://github.com/zmkfirmware/zmk/issues/86
2020-10-31Merge pull request #269 from joelspadin/endpoint-selectionPete Johanson
feat: only send HID reports to one endpoint
2020-10-28feat(endpoints): clear HID report on endpoint changeJoel Spadin
This prevents stuck keys when switching endpoints by clearing everything in the HID report and sending one last report before switching to the new endpoint.
2020-10-27feat(hid): Make keypad report boot friendlyinnovaker
Add missing byte to make keypad report boot friendly.
2020-10-27refactor(hid): Refactor consumer report to a configurable sizeinnovaker
2020-10-27refactor(hid): Refactor keypad report to use a configurable integer arrayinnovaker
Replace NKRO bit array with configurable integer (DV) array.
2020-09-14chore: clang-format the codebase.Pete Johanson
* Use the LLVM style * Override indent width (8) and column limit (100) * Fixes #142.
2020-09-10fix: Switch to single AUTHORS file.* Closes #164Pete Johanson
2020-06-22Fix consumer keys w/ refactored behaviors.Pete Johanson
2020-06-21Clean up after refactor, better HID constants.Pete Johanson
2020-06-08Move Zephyr app into subdirectory.Pete Johanson