Jump to content

game.input.activePointer.isDown PROBLEM IE


i3Designer
 Share

Recommended Posts

I used game.input.activePointer.isDown for my game, but only in IE on Windows Phone i have a little problem, the problem is that while i press the screen, after a few second the input is false, why? 

CODE

 

in update: 

        if(game.input.activePointer.isDown){
            this.sposta();
        }

 

function out update:

 

    sposta: function(){
        if(game.device.desktop){
        }
        else{
            if(game.input.x < 280){        //sinistra
                this.tab.body.rotation += 0.045;
            }
            else if(game.input.x > 280){    //destra
                this.tab.body.rotation -= 0.045;   
            }
        }   
    },
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...