Click equivalent to "mousemove"

Hello everyone!

I want to the following but instead of in ‘mousemove’, I want it to execute on click:

this.node.on('mousemove', this._onMouseClick.bind(this));

I tried ‘mouseclick’ and ‘mousepress’ but none seem to do the work.

Where can I search for node events?

http://cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/internal-events/

Part of http://cocos2d-x.org/docs/editors_and_tools/creator/

I don’t think there is a “click” event. You need to use mousedown, which would happen when the click began, or mouseup, which would happen when the click ends.

1 Like

thank you very much!