diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-01-27 12:03:09 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | f9492ae3e0ce764b27fdf3e93db728e6cab44b33 (patch) | |
| tree | d475629b9b5d3f11b34c3b1908bdbcc6fe70b90e | |
| parent | docs: update extension guide (Op:fork, Op:poll) (diff) | |
| download | alive-f9492ae3e0ce764b27fdf3e93db728e6cab44b33.tar.gz alive-f9492ae3e0ce764b27fdf3e93db728e6cab44b33.zip | |
lib: tidy up unecessary parameters
| -rw-r--r-- | alv-lib/love.moon | 6 | ||||
| -rw-r--r-- | alv-lib/random.moon | 2 |
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] |
