function lightStepUpdate()

in libs/bead-motion/gesture.ts [22:34]


    function lightStepUpdate(): () => boolean {
        let active = true;
        return function() {
            const s = input.acceleration(Dimension.Strength);        
            if (!active && s > 1500) {
                active = true;
                return true;
            } else if (s < 1200) {
                active = false;
            }
            return false;
        }
    }