Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keymap] Revamp spidey3 userspace and keymaps #11768

Merged
merged 23 commits into from
Feb 6, 2021
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
restore key logging
  • Loading branch information
spidey3 committed Jan 29, 2021
commit d8cda43c53529ae6decbfc06603b5e4c067471b1
20 changes: 20 additions & 0 deletions users/spidey3/spidey3.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,26 @@ bool process_gflock(uint16_t keycode, keyrecord_t *record) {
}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {

dprintf("key event:\n"
"kc: %02X, col: %u, row: %u, pressed: %u\n"
"mods: %08b "
#if !defined(NO_ACTION_ONESHOT)
"os: %08b "
#endif
"weak: %08b\n"
" CSAGCSAG "
#if !defined(NO_ACTION_ONESHOT)
" CSAGCSAG "
#endif
" CSAGCSAG\n",
keycode, record->event.key.col, record->event.key.row, record->event.pressed,
bitrev(get_mods()),
#if !defined(NO_ACTION_ONESHOT)
bitrev(get_oneshot_mods()),
#endif
bitrev(get_weak_mods()));

if (!rand_seeded) {
srand(record->event.time % keycode);
rand_seeded = true;
Expand Down