fix
This commit is contained in:
parent
5814d46468
commit
04c70ee493
@ -6,6 +6,7 @@ local input={
|
|||||||
subscriptions = {},
|
subscriptions = {},
|
||||||
activeEvents = {}
|
activeEvents = {}
|
||||||
}
|
}
|
||||||
|
input.__index = input
|
||||||
|
|
||||||
local dummyfunc = function() end
|
local dummyfunc = function() end
|
||||||
---@class subscription
|
---@class subscription
|
||||||
@ -212,7 +213,7 @@ end
|
|||||||
input.subscribe = subscription.create
|
input.subscribe = subscription.create
|
||||||
|
|
||||||
--Since the introduction of the relative subscriptions, there is more utility in ommiting coordinates by default
|
--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
|
x = x or 0
|
||||||
y = y or 0
|
y = y or 0
|
||||||
w = w or 1
|
w = w or 1
|
||||||
|
|||||||
4
init.lua
4
init.lua
@ -11,8 +11,8 @@ helium.element = require(path..".core.element")
|
|||||||
helium.input = require(path..".core.input")
|
helium.input = require(path..".core.input")
|
||||||
helium.loader = require(path..".loader")
|
helium.loader = require(path..".loader")
|
||||||
helium.elementBuffer = {}
|
helium.elementBuffer = {}
|
||||||
|
helium.__index = helium
|
||||||
helium.__call = function(chunk)
|
helium.__call = function(s,chunk)
|
||||||
return function(param,w,h)
|
return function(param,w,h)
|
||||||
return helium.element(chunk,nil,w,h,param)
|
return helium.element(chunk,nil,w,h,param)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user