Jump to content

code of the key pressed


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




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


Link to comment
Share on other sites


  • Recently Browsing   0 members

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