feat: first working stick prototype

This commit is contained in:
Virt 2024-06-21 14:32:42 +02:00
commit 204a79ebaf
3 changed files with 89 additions and 0 deletions

19
src/render.hpp Normal file
View file

@ -0,0 +1,19 @@
#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;