local function h(h)if cooldown then return end if isInTutorial()then return end local b=h.Position local I=b.Magnitude if I>sensitivity then registerMovement(I)end end
-- Gets the acceleration back as a Vector3, averages it and then determines if the
-- average movement is over a minimum sensitivity
local function changeAcceleration(acceleration)
	if cooldown then
		return
	end
	if isInTutorial() then
		return
	end

	local accel = acceleration.Position
	local magnitude = accel.Magnitude
	-- Used to debug Accelerometer
	--debugLabel.Text = "Accel: " .. string.format("%.2f", magnitude)

	if magnitude > sensitivity then
		registerMovement(magnitude)
	end
end
