Hi .
I found issue about pc.GamePads().
I can use gamepad on launch, however I can not use one on publish.
Project is here
My code “gamepad.js” :
var Gamepad = pc.createScript('gamepad');
var gamepads = new pc.GamePads();
// initialize code called once per entity
Gamepad.prototype.initialize = function() {
};
// update code called every frame
Gamepad.prototype.update = function(dt) {
console.log(gamepads.isPressed(pc.PAD_1,pc.PAD_FACE_1));
gamepads.update();
};
Can you please kindly help me?