Jump to content

distinguishing which mouse button was clicked


wayfinder
 Share

Recommended Posts

I have set up an event callback for onInputUp on a sprite. Inside, I would like to perform different tasks depending on which mouse button the click was performed with. The problem is: when the event fires, game.input.mouse.button is always -1 (no button pressed), and the sprite's input handler does not provide a way to discern which button was pressed, as far as i can tell.

 

Do you know how to do this?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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