Fixed critical typos in updateInputNoCallback
This commit is contained in:
parent
2283224516
commit
f17eca0e52
8
main.lua
8
main.lua
@ -5,6 +5,8 @@ local Clock = require"clock"
|
||||
|
||||
local clock
|
||||
|
||||
local inputSource
|
||||
|
||||
function love.mousemoved(x, y, dx, dy, istouch)
|
||||
clock:movemouse(x, y)
|
||||
end
|
||||
@ -55,10 +57,10 @@ function love.load()
|
||||
minuteBox.OnValueChanged = setClock
|
||||
|
||||
function updateInputNoCallback(input, value)
|
||||
callback = input.onValueChanged
|
||||
input.onValueChanged = nil
|
||||
local callback = input.OnValueChanged
|
||||
input.OnValueChanged = nil
|
||||
input:SetValue(value)
|
||||
input.onValueChanged = callback
|
||||
input.OnValueChanged = callback
|
||||
end
|
||||
|
||||
function updateInputs(time)
|
||||
|
Loading…
Reference in New Issue
Block a user