mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
fix: use new animations from hyprutils like hl
This commit is contained in:
parent
0ad0a0e4b7
commit
55fd61757b
2 changed files with 20 additions and 19 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "src/helpers/AnimatedVariable.hpp"
|
||||
#include "helpers/AnimatedVariable.hpp"
|
||||
#include <hyprutils/animation/AnimatedVariable.hpp>
|
||||
#include <hyprutils/math/Vector2D.hpp>
|
||||
#include <vector>
|
||||
|
||||
|
@ -7,12 +8,12 @@
|
|||
#define IPC_SHAKE_END "shakeend"
|
||||
|
||||
using namespace Hyprutils::Math;
|
||||
using namespace Hyprutils::Animation;
|
||||
using namespace std::chrono;
|
||||
|
||||
class CShake {
|
||||
public:
|
||||
CShake();
|
||||
~CShake();
|
||||
|
||||
/* calculates the new zoom factor for the current pos */
|
||||
double update(Vector2D pos);
|
||||
|
@ -24,7 +25,7 @@ class CShake {
|
|||
bool ipc = false;
|
||||
|
||||
bool started = false;
|
||||
CAnimatedVariable<float> zoom;
|
||||
PHLANIMVAR<float> zoom;
|
||||
steady_clock::time_point end;
|
||||
|
||||
/* ringbuffer for last samples */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue