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)
|
||||
return input.axis(unpack(self.detectors))
|
||||
:threshold(self.threshold)
|
||||
:triggeringThreshold(self.triggeringThreshold)
|
||||
end,
|
||||
|
||||
--- Bind new AxisDetector(s) to this input.
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@ function signal.registerEvents()
|
|||
local old = love[callback]
|
||||
love[callback] = function(dt)
|
||||
old(dt)
|
||||
event:emit(callback, dt*1000)
|
||||
event:emit(callback, dt)
|
||||
end
|
||||
else
|
||||
love[callback] = function(dt)
|
||||
event:emit(callback, dt*1000)
|
||||
event:emit(callback, dt)
|
||||
end
|
||||
end
|
||||
else
|
||||
|
|
|
|||
|
|
@ -140,6 +140,7 @@ util = {
|
|||
|
||||
--- Perform a deep copy of a 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.
|
||||
-- @tparam table t the table
|
||||
-- @treturn table the copied table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue