diff --git a/index.js b/index.js index 6518520..2045f6d 100644 --- a/index.js +++ b/index.js @@ -224,7 +224,6 @@ async function renderLoop() { let percentage = Math.round(axisValGamepad*100/255); barElements[i].style.background = `linear-gradient(to right, var(--alf-green) ${percentage}%, grey 0%)`; } - buttonElements.forEach((button) => button.style.background='grey') if(rawPacket[5]!=0 || rawPacket[6]!=0){ for(let i=7; rawPacket[i]!=0; i++){ if(Object.values(keys).slice(8).includes(rawPacket[i])){