core: require that the user manually call suit:enterFrame during update/draw so that manually specifying mouse coordinates works

This commit is contained in:
len0rd 2025-08-05 09:55:28 -04:00
parent 2634383ffd
commit 4aada674ad

View file

@ -213,14 +213,14 @@ function suit:registerDraw(f, ...)
end end
function suit:draw() function suit:draw()
self:exitFrame() -- self:exitFrame() -- CALL these manually in your update method
love.graphics.push('all') love.graphics.push('all')
for i = self.draw_queue.n,1,-1 do for i = self.draw_queue.n,1,-1 do
self.draw_queue[i]() self.draw_queue[i]()
end end
love.graphics.pop() love.graphics.pop()
self.draw_queue.n = 0 self.draw_queue.n = 0
self:enterFrame() -- self:enterFrame() -- CALL these manually in your update method
end end
return suit return suit