Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Commit 668a094

Browse files
committed
Variable formatting
1 parent 82764b1 commit 668a094

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/xbox.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ XboxController.analyze = function analyze (key, type, axis)
8080
else if(type==='joystick') {
8181
for(i=0;i<bufferStore.length;i++){
8282
for(n=0;n<bufferStore[i].length;n++){
83-
var current = bufferStore[i][n], diffx = bufferStore[i][n]-original[n], diffy = original[n]-bufferStore[i][n];
83+
var current = bufferStore[i][n],
84+
diffx = bufferStore[i][n]-original[n],
85+
diffy = original[n]-bufferStore[i][n];
8486
if(current !== original[n] && axis === 'leftx' && diffx>70) {
8587
joysticks.leftxPos = n;
8688
joysticks.leftxState = (n-1);
@@ -238,7 +240,9 @@ XboxController.configure = function() {
238240
XboxController.reader('left',200,'joystick','lefty');
239241
break;
240242
case 25:
241-
var joysticksDir = path.join(__dirname,'joysticks.json' ), triggersDir = path.join(__dirname,'triggers.json' ), buttonsDir = path.join(__dirname,'buttons.json' );
243+
var joysticksDir = path.join(__dirname,'joysticks.json' ),
244+
triggersDir = path.join(__dirname,'triggers.json' ),
245+
buttonsDir = path.join(__dirname,'buttons.json' );
242246
var configArray = [joysticksDir,triggersDir,buttonsDir],
243247
nameArray = [joysticks,triggers,buttons];
244248
for(i=0;i<configArray.length;i++){

0 commit comments

Comments
 (0)