Skip to content

textmode.js / Textmodifier / mousePressed

Method: mousePressed() ​

ts
mousePressed(callback): void;

Register the single-callback handler for mouse press events.

Parameters ​

ParameterTypeDescription
callbackMouseEventHandlerHandler to run with mouse event data when the mouse is pressed.

Returns ​

void

Example ​