Jump to content

keyboard.addCallbacks error


fubeca6
 Share

Recommended Posts

Good afternoon all,

 

I'm trying to capture user key presses... here's my code:

// This is in my "create" functiongame.input.keyboard.addCallbacks(this, null, null, this.input);// ...input: function(char) {    this.name += char;    this.selection.setText(this.name);        },

Here's the error I'm getting:

 

Uncaught TypeError: this.onPressCallback.call is not a function

 

If anyone has any ideas, please let me know!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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