Closed robbielyman closed 1 year ago
I'm gonna reopen this. As of 0.6.3, only really mashing several keys all at once results in "oops!" in the above script or in stuck LEDs in the following
-- example script.lua
local g = grid.connect()
function g.key(x, y, z)
if (z == 1) then
g:led(x,y,15)
else
g:led(x,y,0)
end
print(x,y,z)
g:refresh()
end
also when mashing the print statement occasionally includes values like 33 in x
and y
rather than what they should be.
I'm sort of mystified and could use expert guidance here.
reported by @dndrks on Discord. minimal repro:
expected behavior: "oops!" never prints unless you press two different keys at once, but at the moment it prints every so often if you steadily press the same key.
monome_handle_next_event
tomonome_event_loop
doesn't appear to helpevents.zig
rather than somewhere else...