Jump to content

code of the key pressed


AprendizEnLaRed
 Share

Recommended Posts

I have a problem with spanish characters, by example. the key ñ the keycode is different in chrome and firefox. But i would like to know the code in phaser.

 

I have a function for keypress

 

        game.input.keyboard.addCallbacks(this,null,this.teclaPulsada);

 

But I saw the code in phaser but I don't know how get the keycode here :S

  this.tecla = game.input.keyboard; this.tecla.isDown('ñ'.charCodeAt('0')) -> is false :S

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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