diff --git a/core/input.lua b/core/input.lua index b0074cc..8d0bc1f 100755 --- a/core/input.lua +++ b/core/input.lua @@ -211,6 +211,7 @@ end input.subscribe = subscription.create +input.__call = subscription.create function input.eventHandlers.mousereleased(x, y, btn) local captured = false diff --git a/init.lua b/init.lua index 65c56ac..08b0c7e 100755 --- a/init.lua +++ b/init.lua @@ -12,6 +12,12 @@ helium.input = require(path..".core.input") helium.loader = require(path..".loader") helium.elementBuffer = {} +helium.__call = function(chunk) + return function(param,w,h) + return helium.element(chunk,nil,w,h,param) + end +end + function helium.render() --We don't want any side effects affecting internal rendering love.graphics.reset()