i just showed that above (for a specific device)
you can also catch the global callback when any grid is added / removed:
grid.add = function(g) ... end
grid.remove = function(g) ... end
(g argument is an instance of Grid.)
youâll notice this pattern in a few places:
grid module has static methods.add, .remove, these are designed to be overridden by scripts.
norns.grid has the âsystem-levelâ callbacks - donât touch these.