summaryrefslogtreecommitdiff
path: root/src/wormouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wormouse.h')
-rw-r--r--src/wormouse.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/wormouse.h b/src/wormouse.h
index 048ff18..8355855 100644
--- a/src/wormouse.h
+++ b/src/wormouse.h
@@ -35,7 +35,8 @@ class WormouseScreen :
WormouseScreen (CompScreen *s);
~WormouseScreen ();
- bool loadCursor (CompString &path, int hotx, int hoty, float tailf = 0.5);
+ bool loadCursor (CompString &path, int hotx, int hoty,
+ float tail_dist, float image_angle);
void mouseMove (const CompPoint &pos);
bool updateConfig (CompOption *opt, Options num);
@@ -53,11 +54,12 @@ class WormouseScreen :
MousePoller poller;
// math specific
- float piv_x, piv_y;
- float wrk_w, wrk_h;
- float wrk_r; // working radius
- float piv_d; // distnace from head to place the pivot
- float hot_a, hot_d; // cursor hotspot (angle + distance from center)
+ // coords from wich to take rotation
+ float piv_x, piv_y, tail_d;
+ // image dimensions, radius, compensation angle (for non standard cursors)
+ float wrk_w, wrk_h, wrk_r, wrk_a;
+ // hotspot location (polar coords)
+ float hot_a, hot_d;
// option cache
bool show_hotspot;