Input Event


#1

Hi guys,one doubt in input event,now i used game.events.onInputDown.add(). its working fine in web but not in android device.In android its works double time.Any one have idea about this.


#2

Hi! Maybe this would help.


#3

I am using it in https://github.com/nazimboudeffa/dice-mania-cordova-app
It works fine

  addDice: function() {
    for (i=0; i < 5; i++){
      d[i] = new Dice(game.world.centerX, 50 + i * 100);
      d[i].inputEnabled = true;
      d[i].events.onInputDown.add(this.rollDice, this);
    }
},

#4