var buttonSets = {
    snes: 'a,b,x,y,l,r,start,select,up,down,left,right',
    n64: 'a,b,z,l,r,start,cUp,cDown,cLeft,cRight,dUp,dDown,dLeft,dRight'
};
var joystickSets = {
    n64: 'center'
};

module.exports = function (platform) {
    var returnObj = {};
    if (platform && buttonSets.hasOwnProperty(platform)) {
        returnObj.buttons = buttonSets[platform].split(',');
    }
    if (platform && joystickSets.hasOwnProperty(platform)) {
        returnObj.joysticks = joystickSets[platform].split(',');
    }
    return returnObj;
};
@@ -141,16 +141,119 @@
 ,dRight'
+,%0A    ps4: 'square,triangle,circle,x,l1,l2,lStick,r1,r2,rStick,share,options,ps,dUp,dDown,dLeft,dRight'
 %0A%7D;%0Avar 
@@ -286,16 +286,39 @@
 'center'
+,%0A    ps4: 'left,right'
 %0A%7D;%0A%0Amod

add ps4 button set