mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
parent
98c006aeae
commit
3ff4c2a053
9 changed files with 37 additions and 5 deletions
|
@ -405,9 +405,14 @@ void CDynamicCursors::calculate(EModeUpdate type) {
|
|||
|
||||
// calculate angle and zoom
|
||||
if (mode) {
|
||||
// reset mode if it has changed
|
||||
if (mode != lastMode) mode->reset();
|
||||
|
||||
if (mode->strategy() == type) resultMode = mode->update(g_pPointerManager->pointerPos);
|
||||
} else resultMode = SModeResult();
|
||||
|
||||
lastMode = mode;
|
||||
|
||||
if (**PSHAKE) {
|
||||
if (type == TICK) resultShake = shake.update(g_pPointerManager->pointerPos);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue