mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-20 00:23:22 +02:00
feat: first working stick prototype
This commit is contained in:
parent
85b89bc389
commit
204a79ebaf
3 changed files with 89 additions and 0 deletions
19
src/render.hpp
Normal file
19
src/render.hpp
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue