fix
This commit is contained in:
parent
f2770c8ac0
commit
4e021c80b8
@ -213,14 +213,14 @@ end
|
||||
input.subscribe = subscription.create
|
||||
|
||||
--Since the introduction of the relative subscriptions, there is more utility in ommiting coordinates by default
|
||||
input.sub = function(eventType, callback, cbOff, x, y, w, h)
|
||||
setmetatable(input, {__call = function(eventType, callback, cbOff, x, y, w, h)
|
||||
x = x or 0
|
||||
y = y or 0
|
||||
w = w or 1
|
||||
h = h or 1
|
||||
|
||||
subscription.create(x,y,w,h,eventType,callback,cbOff)
|
||||
end
|
||||
end})
|
||||
|
||||
function input.eventHandlers.mousereleased(x, y, btn)
|
||||
local captured = false
|
||||
|
||||
4
init.lua
4
init.lua
@ -12,11 +12,11 @@ helium.input = require(path..".core.input")
|
||||
helium.loader = require(path..".loader")
|
||||
helium.elementBuffer = {}
|
||||
helium.__index = helium
|
||||
helium.__call = function(s,chunk)
|
||||
setmetatable(helium, {__call = function(s,chunk)
|
||||
return function(param,w,h)
|
||||
return helium.element(chunk,nil,w,h,param)
|
||||
end
|
||||
end
|
||||
end})
|
||||
|
||||
function helium.render()
|
||||
--We don't want any side effects affecting internal rendering
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user