onCursor()
Set up a function to call as a given cursor moves through the IanniX score.
iannixin.onCursor(cursorID, action)
Parameters
iannixin.onCursor(cursorID, action)
| Parameter | Type | Default | Description |
|---|---|---|---|
cursorID |
int or str |
required | The ID of the cursor to listen for. |
action |
function |
required | The function to call; it receives three parameters, x, y, and z, the cursor's current coordinates. |