This is for the love2d engine. Works with the latest version. Look at my intro to software project for some examples on how to use this
7 lines
176 B
Plaintext
7 lines
176 B
Plaintext
_GuiPro.mousedownfunc=love.mouse.isDown
|
|
function love.mouse.isDown(b)
|
|
if not(b) then
|
|
return false
|
|
end
|
|
return _GuiPro.mousedownfunc(({["l"]=1,["r"]=2,["m"]=3})[b] or b)
|
|
end |