wayfinder Posted June 4, 2015 Share Posted June 4, 2015 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 More sharing options...
wayfinder Posted June 4, 2015 Author Share Posted June 4, 2015 hah, found it. it's game.input.activePointer.button that I need to look at! Link to comment Share on other sites More sharing options...
Recommended Posts