mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-20 00:23:22 +02:00
feat: rotate cursor around hotspot
This commit is contained in:
parent
204a79ebaf
commit
9a9830034c
9 changed files with 334 additions and 22 deletions
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue