diff --git a/sysdata/programs/render_example/src/examples/intouch.hb b/sysdata/programs/render_example/src/examples/intouch.hb index 79ee022..2c0267d 100644 --- a/sysdata/programs/render_example/src/examples/intouch.hb +++ b/sysdata/programs/render_example/src/examples/intouch.hb @@ -5,7 +5,6 @@ stn := @use("stn") example := fn(): void { screen := render.init(true) mouse_pos := stn.math.Vec2(int).(0, 0) - prev_pos := mouse_pos bg_colour := render.BLACK pen_colour := render.WHITE loop { @@ -14,8 +13,6 @@ example := fn(): void { mouse_pos.x = stn.math.clamp(int, mouse_pos.x + mouse.x_change, 10, @bitcast(screen.width) - 10) mouse_pos.y = stn.math.clamp(int, mouse_pos.y - mouse.y_change, 10, @bitcast(screen.height) - 10) - prev_pos = mouse_pos - if mouse.left { screen.put_filled_circle(@bitcast(mouse_pos), 10, pen_colour) } else if mouse.right {