SLUDGE

onLeftMouse


Syntax:

onLeftMouse (handlerFunction);

onLeftMouse ();

Purpose:

Tells the computer which function to call when the left mouse button is clicked. The value of handlerFunction must be a pointer to a function which takes no parameters. The function will be called every time the user presses the left mouse button until another call to onLeftMouse.

If no parameter is given, the program stops calling the current left mouse button handler function. No function will be called when the user presses the left mouse button until another call to onLeftMouse tells it otherwise.

Note that only one handler for the left mouse button can be used at any one time. A subsequent call to onLeftMouse will replace the current handler function.

Return value:

No return value.

See also:

Passing Functions as Variables

onFocusChange

onKeyboard

onLeftMouseUp

onMoveMouse

onRightMouse

onRightMouseUp