This commit is contained in:
qfx 2020-02-16 18:51:30 +02:00
parent 5814d46468
commit 04c70ee493
2 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ local input={
subscriptions = {},
activeEvents = {}
}
input.__index = input
local dummyfunc = function() end
---@class subscription
@ -212,7 +213,7 @@ end
input.subscribe = subscription.create
--Since the introduction of the relative subscriptions, there is more utility in ommiting coordinates by default
input.__call = function(eventType,callback,cbOff,x,y,w,h)
input.__call = function(s, eventType, callback, cbOff, x, y, w, h)
x = x or 0
y = y or 0
w = w or 1

View File

@ -11,8 +11,8 @@ helium.element = require(path..".core.element")
helium.input = require(path..".core.input")
helium.loader = require(path..".loader")
helium.elementBuffer = {}
helium.__call = function(chunk)
helium.__index = helium
helium.__call = function(s,chunk)
return function(param,w,h)
return helium.element(chunk,nil,w,h,param)
end