Skip to content

Instantly share code, notes, and snippets.

Avatar

Neil Barkhina nbarkhina

View GitHub Profile
View gamepadControls.js
allButtons = [];
gamepadFound = false;
function initGamePad(e) {
var gp = e.gamepad;
if (gp.buttons.length > 0 && !gamepadFound){
for(let i=0;i<gp.buttons.length;i++){
gamepadFound = true;
allButtons.push(
View config.js
requirejs.config({
paths: {
// "angular": "/node_modules/angular/angular"
},
urlArgs: function (id, url) {
var rando = Math.floor(Math.random() * Math.floor(100000));
var args = '';
if (url.indexOf('index') !== -1) {
args = '?v=' + rando;
}