mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-20 00:23:22 +02:00
fix: recalulate on mouse move, not render
This commit is contained in:
parent
581a094b7b
commit
4fce380c13
4 changed files with 47 additions and 13 deletions
|
@ -21,8 +21,11 @@ class CDynamicCursors {
|
|||
bool setHardware(CPointerManager* pointers, SP<CPointerManager::SMonitorPointerState> state, wlr_buffer* buf);
|
||||
|
||||
private:
|
||||
// calculates the current angle of the cursor
|
||||
double calculate(Vector2D* pos);
|
||||
// current angle of the cursor in radiants
|
||||
double angle;
|
||||
|
||||
// calculates the current angle of the cursor, returns whether the angle has changed
|
||||
bool calculate(Vector2D* pos);
|
||||
// this is the end of the virtual stick
|
||||
Vector2D end;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue