- else if(mode==MEASURE)
- measure.button_press(ground.x, ground.y, btn);
-}
-
-void Designer::axis_motion(unsigned, float, float)
-{
- Vector pointer(mouse.get_axis_value(0), mouse.get_axis_value(1));
- float wx = pointer.x*window.get_width();
- float wy = pointer.y*window.get_height();
-
- if(!root.get_child_at(wx, wy))
- {
- Vector ground = map_pointer_to_ground(pointer);
- measure.pointer_motion(ground.x, ground.y);
- }