Open topic with navigation
<node3d:canvas>.setCursorPosition
Set position of canvas cursor
<node3d:canvas>.setCursorPosition( |
|
pos |
mode = viz.CANVAS_CURSOR_NORMALIZED |
) |
|
pos
The [x,y] position of the canvas cursor.
mode = viz.CANVAS_CURSOR_NORMALIZED
Can be one of the following:
viz.CANVAS_CURSOR_NORMALIZED | The position is specified in normalized (0-1) canvas coordinates. |
viz.CANVAS_CURSOR_PIXELS | The position is specified in canvas pixel resolution coordinates. |
Remarks
This command will set the position of the virtual canvas cursor. This is typically needed when using an input device other than a mouse.
The default cursor position is the center of the canvas.
Return Value
None
See also