elpekenin/keylog.h

Utility to track last keys pressed in a string.

This could later be shown on a screen, for example.


void keylog_process(uint16_t keycode, keyrecord_t *record)
[source]

Hook into process_record_user() that performs the tracking.

const char *get_keylog(void)
[source]

Read the current state of the keylog.

bool is_keylog_dirty(void)
[source]

Whether anything has been written since keylog was last fetched.

void keycode_repr(const char **str)
[source]

Takes a basic string representation of a keycode and replace it with a prettier one. Eg: KC_A becomes A