Draft commit of typing speed RGB control

This commit is contained in:
Chris Lewis
2018-08-23 22:05:12 +10:00
parent 6d1536db1d
commit 48a222de4e
4 changed files with 39 additions and 4 deletions
+3
View File
@@ -190,12 +190,15 @@ static uint16_t scs_timer[2] = {0, 0};
*/
static bool grave_esc_was_shifted = false;
uint8_t typing_speed = 0;
bool process_record_quantum(keyrecord_t *record) {
/* This gets the keycode from the key pressed */
keypos_t key = record->event.key;
uint16_t keycode;
if (typing_speed < 100) typing_speed += 1;
#if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS)
/* TODO: Use store_or_get_action() or a similar function. */
if (!disable_action_cache) {