mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
fix: bandaid fix for jitter after shake
This commit is contained in:
parent
d7c1fdf5f8
commit
e382821ac6
2 changed files with 13 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue