aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-09-21 15:06:08 +0000
committers-ol <s+removethis@s-ol.nu>2025-09-21 15:06:08 +0000
commitdf1ff32399c0cc237b82b1207e67180a80e3a795 (patch)
treecebc5df585f5db3096b1e39b70042e355c7585e0
parentlib/love: floor text coordinates (diff)
downloadalive-df1ff32399c0cc237b82b1207e67180a80e3a795.tar.gz
alive-df1ff32399c0cc237b82b1207e67180a80e3a795.zip
lib/osc: fix error when not keeping up with input events
-rw-r--r--alv-lib/osc.moon4
1 files changed, 4 insertions, 0 deletions
diff --git a/alv-lib/osc.moon b/alv-lib/osc.moon
index 7de3452..82be97e 100644
--- a/alv-lib/osc.moon
+++ b/alv-lib/osc.moon
@@ -48,6 +48,8 @@ listen = Constant.meta
@setup_out '!', T['osc/in']
poll: =>
+ if @inputs.io.result\dirty! return
+
messages = while true
data = @state\receive!
break unless data
@@ -120,6 +122,8 @@ recv_evt = Constant.meta
continue if msg.address != path
continue if msg.types != types
+ continue if @out\dirty!
+
if @state
@out\set [v for v in *msg]
else