fix: reset mode if it has changed

fixes #25
This commit is contained in:
Virt 2024-10-10 13:04:46 +02:00
commit 3ff4c2a053
9 changed files with 37 additions and 5 deletions

View file

@ -9,8 +9,10 @@ class IMode {
public:
/* returns the desired updating strategy for the given mode */
virtual EModeUpdate strategy() = 0;
/* updates the calculations and returns the new angle */
/* updates the calculations and returns the new result */
virtual SModeResult update(Vector2D pos) = 0;
/* reset the internal stuff of the mode */
virtual void reset() = 0;
/* called on warp, an update will be sent afterwards (probably) */
virtual void warp(Vector2D old, Vector2D pos) = 0;
};