diff --git a/sim/fakes/ctx.py b/sim/fakes/ctx.py index 9b9a3365dd2cc8326edfd8bd82820d23faa6e652..f5606dbd73b1d1a86b944df25e47fc69cd97cc76 100644 --- a/sim/fakes/ctx.py +++ b/sim/fakes/ctx.py @@ -122,3 +122,7 @@ class Ctx: def fill(self): self._emit(f"fill") return self + + def arc(self, x, y , radius, arc_from, arc_to, direction): + self._emit(f"arc {x} {y} {radius} {arc_from} {arc_to} {direction}") + return self \ No newline at end of file diff --git a/sim/fakes/hardware.py b/sim/fakes/hardware.py index c28e68eabb539b3813060d30b6e1bac5cfa34090..5d5128dd3db97299f0da9350e7fe9458406819a8 100644 --- a/sim/fakes/hardware.py +++ b/sim/fakes/hardware.py @@ -396,3 +396,10 @@ def get_captouch(a): _sim.process_events() _sim.render_gui_lazy() return _sim.petals.state()[a] + +#TODO(iggy/q3k do proper positional captouch) +def captouch_get_petal_rad(a): + return 0 + +def captouch_get_petal_phi(a): + return 0 \ No newline at end of file