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.
No return value.
Passing Functions as Variables
SLUDGE and this SLUDGE documentation are copyright Hungry Software and contributors 2000-2012