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-08-23 22:05:12 +10:00
committed by Chris Lewis
parent c8b160b410
commit 4d15b2d785
4 changed files with 27 additions and 15 deletions
+1 -1
View File
@@ -197,7 +197,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. */