FastLED 3.9.15
Loading...
Searching...
No Matches

◆ Update()

void Key::Update ( uint32_t now_ms,
uint32_t delta_ms,
bool sustain_pedal_on )

Definition at line 35 of file Keyboard.cpp.

35 {
36 if (mSustained && !sustain_pedal_on) {
37 mSustained = false;
38 SetOff(now_ms);
39 }
40 mSustainPedalOn = sustain_pedal_on;
41 UpdateIntensity(now_ms, delta_ms);
42}
void SetOff(uint32_t now_ms)
Definition Keyboard.cpp:24
bool mSustainPedalOn
Definition Keyboard.h:38
bool mSustained
Definition Keyboard.h:37
void UpdateIntensity(uint32_t now_ms, uint32_t delta_ms)
Definition Keyboard.cpp:70

References mSustained, mSustainPedalOn, SetOff(), and UpdateIntensity().

+ Here is the call graph for this function: