Tag Archives: slither.io controller

Slither.io PS4 Playstation Controller Support

Hello friends Slither.io PS4 Playstation Controller Support my added Dualshoch 4 support to Slither.io details and codes; // Tested in Chrome. // Left stick to steer, X to accelerate (function() {  if(!("getGamepads"innavigator)) {  return;  }  varpollPad = function() {  varps4 = navigator.getGamepads()[0];  if(ps4) {  varx = ps4.axes[0], y = ps4.axes[1];  if(Math.sqrt(x*x+y*y) < 0.1) x = y = 0; // deadzone radius …

Read More »