Jump to content

I failed to listen mouse move - how to ?


bali33
 Share

Recommended Posts

Hi,

 

I'm trying inside one of my game state to listen when the mouse/finger is moving. In order to achieve that I use the following code :

game.input.enabled = true;game.input.moveCallback = this.onMouseMove;game.input.moveCallbackContext = this;

But that way the onMouseMove function in my game state is never called - so I guess it's not the right way to do. What am'I doing wrong ?

 

Thank you.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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