feat: rotate cursor around hotspot

This commit is contained in:
Virt 2024-06-21 16:06:55 +02:00
commit 9a9830034c
9 changed files with 334 additions and 22 deletions

View file

@ -1,19 +0,0 @@
#include "globals.hpp"
#include <hyprland/src/managers/PointerManager.hpp>
#include <hyprutils/math/Vector2D.hpp>
class CDynamicCursors;
class CDynamicCursors {
public:
void render(CPointerManager* pointers, SP<CMonitor> pMonitor, timespec* now, CRegion& damage, std::optional<Vector2D> overridePos);
private:
double size = 10;
// calculates the current angle of the cursor
double calculate(Vector2D* pos);
// this is the end of the virtual stick
Vector2D end;
};
inline std::unique_ptr<CDynamicCursors> g_pDynamicCursors;