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 clock
|
||||||
|
|
||||||
|
local inputSource
|
||||||
|
|
||||||
function love.mousemoved(x, y, dx, dy, istouch)
|
function love.mousemoved(x, y, dx, dy, istouch)
|
||||||
clock:movemouse(x, y)
|
clock:movemouse(x, y)
|
||||||
end
|
end
|
||||||
@ -55,10 +57,10 @@ function love.load()
|
|||||||
minuteBox.OnValueChanged = setClock
|
minuteBox.OnValueChanged = setClock
|
||||||
|
|
||||||
function updateInputNoCallback(input, value)
|
function updateInputNoCallback(input, value)
|
||||||
callback = input.onValueChanged
|
local callback = input.OnValueChanged
|
||||||
input.onValueChanged = nil
|
input.OnValueChanged = nil
|
||||||
input:SetValue(value)
|
input:SetValue(value)
|
||||||
input.onValueChanged = callback
|
input.OnValueChanged = callback
|
||||||
end
|
end
|
||||||
|
|
||||||
function updateInputs(time)
|
function updateInputs(time)
|
||||||
|
Loading…
Reference in New Issue
Block a user