mirror of
https://github.com/Reuh/ubiquitousse.git
synced 2025-10-27 17:19:31 +00:00
Dt in seconds, minor fixes
This commit is contained in:
parent
fdd69fd7f8
commit
394c658d8b
3 changed files with 4 additions and 2 deletions
|
|
@ -164,6 +164,7 @@ local axis_mt = {
|
||||||
clone = function(self)
|
clone = function(self)
|
||||||
return input.axis(unpack(self.detectors))
|
return input.axis(unpack(self.detectors))
|
||||||
:threshold(self.threshold)
|
:threshold(self.threshold)
|
||||||
|
:triggeringThreshold(self.triggeringThreshold)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
--- Bind new AxisDetector(s) to this input.
|
--- Bind new AxisDetector(s) to this input.
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,11 @@ function signal.registerEvents()
|
||||||
local old = love[callback]
|
local old = love[callback]
|
||||||
love[callback] = function(dt)
|
love[callback] = function(dt)
|
||||||
old(dt)
|
old(dt)
|
||||||
event:emit(callback, dt*1000)
|
event:emit(callback, dt)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
love[callback] = function(dt)
|
love[callback] = function(dt)
|
||||||
event:emit(callback, dt*1000)
|
event:emit(callback, dt)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,7 @@ util = {
|
||||||
|
|
||||||
--- Perform a deep copy of a table.
|
--- Perform a deep copy of a table.
|
||||||
-- The copied table will keep the share the same metatable as the original table.
|
-- The copied table will keep the share the same metatable as the original table.
|
||||||
|
-- If a key is a table, it will be reused and not copied.
|
||||||
-- Note this uses pairs() to perform the copy, which will honor the __pairs methamethod if present.
|
-- Note this uses pairs() to perform the copy, which will honor the __pairs methamethod if present.
|
||||||
-- @tparam table t the table
|
-- @tparam table t the table
|
||||||
-- @treturn table the copied table
|
-- @treturn table the copied table
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue