diff --git a/main.lua b/main.lua index c257e3b..c36327c 100644 --- a/main.lua +++ b/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)