aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-01-27 12:03:09 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commitf9492ae3e0ce764b27fdf3e93db728e6cab44b33 (patch)
treed475629b9b5d3f11b34c3b1908bdbcc6fe70b90e
parentdocs: update extension guide (Op:fork, Op:poll) (diff)
downloadalive-f9492ae3e0ce764b27fdf3e93db728e6cab44b33.tar.gz
alive-f9492ae3e0ce764b27fdf3e93db728e6cab44b33.zip
lib: tidy up unecessary parameters
-rw-r--r--alv-lib/love.moon6
-rw-r--r--alv-lib/random.moon2
2 files changed, 4 insertions, 4 deletions
diff --git a/alv-lib/love.moon b/alv-lib/love.moon
index 8ad09af..e3fa7e4 100644
--- a/alv-lib/love.moon
+++ b/alv-lib/love.moon
@@ -334,7 +334,7 @@ If `button` is passed, outputs a vec2! stream."
poll: =>
- tick: (setup) =>
+ tick: =>
{ :button, :event } = @unwrap_all!
if event and event.button == button
@out\set event.pos
@@ -413,7 +413,7 @@ If `key` is passed, outputs a bang! stream."
poll: =>
- tick: (setup) =>
+ tick: =>
{ :key, :event } = @unwrap_all!
if event and event == key
@out\set true
@@ -441,7 +441,7 @@ If `key` is passed, outputs a bang! stream."
poll: =>
- tick: (setup) =>
+ tick: =>
{ :key, :event } = @unwrap_all!
if event and event == key
@out\set true
diff --git a/alv-lib/random.moon b/alv-lib/random.moon
index 5cf23d0..0345542 100644
--- a/alv-lib/random.moon
+++ b/alv-lib/random.moon
@@ -75,7 +75,7 @@ vec = (n) ->
trig: trig and Input.hot trig
range: Input.hot range or Constant.str 'uni'
- tick: (setup) =>
+ tick: =>
@gen! if @inputs.trig and @inputs.trig\dirty!
@out\set [apply_range @inputs.range, v for v in *@state]