Support all RGB animation modes (Fixes #1)

* Added support for all RGB light modes to use typing speed

Except christmas lights because that is seizure-inducing at high speeds!

* Introduced a value range specific to each RGB mode

Because some modes are a little too much when running at full speed!
This commit is contained in:
Chris Lewis
2018-07-27 00:23:44 +10:00
committed by GitHub
parent 876cb7a14f
commit 5f2b065dad
4 changed files with 27 additions and 15 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ bool process_record_quantum(keyrecord_t *record) {
keypos_t key = record->event.key;
uint16_t keycode;
if (typing_speed < 100) typing_speed += 1;
if (typing_speed < TYPING_SPEED_MAX_VALUE) typing_speed += 1;
#if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS)
/* TODO: Use store_or_get_action() or a similar function. */