Jump to content

Click Input Fires Outside Canvas


Recommended Posts

Hey guys,


Pretty basic question, but I'm hoping that there's a basic answer that I just haven't been able to find.

this.game.input.onDown.add(this.functionName, this);

Is there a way to make this only fire when the mouse is clicked inside the canvas?


Thanks guys!



Link to comment
Share on other sites


  • Recently Browsing   0 members

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