A lightweight programming environment for desktop and mobile devices
update_sliders = function(State, x)
	if State.slider_handlers == nil then return end  -- very first frame
	for name, slider in pairs(State.slider_handlers) do
		if State.selected_slider == name then
			slider.update(slider_value(slider, x))
			break
		end
	end
end