Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Advay17 committed Oct 20, 2024
1 parent 1ef9439 commit 7af2087
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(navigator.getGamepads().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 7af2087

Please sign in to comment.