From f17eca0e525bde2bde5636e66cf7435687fadfb9 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Mon, 15 Apr 2024 20:06:46 -0600 Subject: [PATCH] Fixed critical typos in updateInputNoCallback --- main.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)