fix: bandaid fix for jitter after shake

This commit is contained in:
Virt 2024-07-03 17:51:19 +02:00
commit e382821ac6
2 changed files with 13 additions and 1 deletions

View file

@ -16,6 +16,9 @@ class CShake {
/* tracks whether the current shake has already been announced in the ipc */
bool ipc = false;
/* stores last measured diagonal */
float diagonal = 0;
/* ringbuffer for last samples */
std::vector<Vector2D> samples;
/* we also store the distance for each sample to the last, so we do only compute this once */