We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80f1c6b commit 32a2fabCopy full SHA for 32a2fab
1 file changed
OS/Framework/KeyEvent/KeyInfo.cpp
@@ -90,6 +90,7 @@ bool KeyInfo::Update(KeyConfig& config, Fract16 new_value) {
90
debouncing = false;
91
// MatrixOS::Logging::LogVerbose("KeyInfo", "RELEASE_DEBOUNCING -> RELEASED");
92
lastEventTime = timeNow;
93
+ values[0] = config.apply_curve ? ApplyVelocityCurve(config, new_value) : new_value;
94
return true & !cleared;
95
}
96
else if (ABOVE_THRESHOLD && timeNow - lastEventTime > config.debounce) {
@@ -153,6 +154,7 @@ bool KeyInfo::Update(KeyConfig& config, Fract16 new_value) {
153
154
state = RELEASED;
155
// MatrixOS::Logging::LogVerbose("KeyInfo", "ACTIVATED -> RELEASED");
156
157
+ values[0] = 0;
158
159
160
0 commit comments