Fricken Hamster Posted November 25, 2013 Share Posted November 25, 2013 Hey, is there a built in way to get pointerpressed events?The closest I've seemed to find is game.input.activePointer.justPressed(), which gets fired a few times depending on how long the delay is set.Thanks Link to comment Share on other sites More sharing options...
XekeDeath Posted November 25, 2013 Share Posted November 25, 2013 What you want is the onDown event. It is fired when a pointer is pressed.game.input.onDown.add(function(evt) { console.log("An input was just pressed"); }); Link to comment Share on other sites More sharing options...
Fricken Hamster Posted November 25, 2013 Author Share Posted November 25, 2013 That did it. Must've mixed that up with isDown in the docs. thanks Link to comment Share on other sites More sharing options...
Mike Posted November 25, 2013 Share Posted November 25, 2013 Please, mark the topic as Answered, since XekeDeath gave a solution. Link to comment Share on other sites More sharing options...
Recommended Posts