Jump to content

Click Input Fires Outside Canvas


Ryan
 Share

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!

 

FyreTale

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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