]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/rotatetool.cpp
Sync timetable on clock discontinuity
[r2c2.git] / source / designer / rotatetool.cpp
index 5931e831d3cc17d829841026497f5cb03cdb97d2..858b2230b0c0acf7925123ddbdb92ec4d4f4aa0b 100644 (file)
@@ -4,15 +4,13 @@ using namespace std;
 using namespace Msp;
 using namespace R2C2;
 
-RotateTool::RotateTool(Designer &d, Input::Mouse &m, const set<Object *> &o):
-       Manipulator(d, m, o),
+RotateTool::RotateTool(Designer &d, Input::Keyboard &k, Input::Mouse &m, const set<Object *> &o):
+       Manipulator(d, k, m, o),
        origin(Geometry::atan2(ground_pointer.y-center.y, ground_pointer.x-center.x))
 { }
 
-void RotateTool::axis_motion(unsigned axis, float value, float rel)
+void RotateTool::pointer_motion()
 {
-       Manipulator::axis_motion(axis, value, rel);
-
        Angle a = Geometry::atan2(ground_pointer.y-center.y, ground_pointer.x-center.x);
        angle += a-origin;
        origin = a;