Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
Advay17 committed Oct 20, 2024
1 parent 7675169 commit 0022380
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ async function renderLoop() {
let percentage = Math.round(axisValGamepad*100/255);
barElements[i].style.background = `linear-gradient(to right, var(--alf-green) ${percentage}%, grey 0%)`;
}
if(Array.from(navigator.getGamepads()).filter(gamepad => gamepad).length<1) 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])){
Expand Down

0 comments on commit 0022380

Please sign in to comment.