 // Each analog group starts with 0x1a
                if (data[0] !== 0x1a) return null;

                let res = parseKeyGroup(data);
                return {
                    left: "0" in res ? res["0"] : 0,
                    right: "1" in res ? res["1"] : 0,
                };
            }

            function handleMessage(value) {
                const data = new Uint8Array(value.buffer);
                const msgType = data[0];

                switch (msgType) {
                    case 0x2