https://love2d.org/forums/viewtopic.php?t=100#p1069 I'm looking for something like in this post but the solution link is dead.
A library I am using (luigi) also hooks into the love io events and passes events it doesn't use to the regular love.mousepressed (for example)
Couldn't figure out what they did by reading the source so here I am.
I don't want to call a whole list of different things in each io event callback function.
Callback Hook for mouse io events
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Callback Hook for mouse io events
Spoke too soon >.>
Code: Select all
local old = love.mousepressed
function love.mousepressed(...)
print("me2")
old()
end
Who is online
Users browsing this forum: No registered users and 7 guests