Set the canvas mouse style
<node3d:canvas>.setMouseStyle( | |
style | |
mode = viz.MASK_SET | |
) |
Style | Description |
viz.CANVAS_MOUSE_BUTTON | The canvas will respond to real mouse button events. |
viz.CANVAS_MOUSE_MOVE | The canvas will respond to real move move events to move the virtual canvas cursor. |
viz.CANVAS_MOUSE_POSITION | The canvas will use the real mouse position when responding to real mouse button events, instead of the virtual canvas cursor position. |
viz.CANVAS_MOUSE_VISIBLE | The canvas will display the virtual cursor. |
viz.CANVAS_MOUSE_VIRTUAL | Use a virtual cursor for interacting with the canvas. This flag is an alias for (viz.CANVAS_MOUSE_BUTTON | viz.CANVAS_MOUSE_MOVE | viz.CANVAS_MOUSE_VISIBLE). |
viz.CANVAS_MOUSE_REAL | Use the real mouse cursor for interacting with the canvas. This flag is an alias for (viz.CANVAS_MOUSE_BUTTON | viz.CANVAS_MOUSE_POSITION). |
Mask modes | |
viz.MASK_SET | Set the mask to the new value. |
viz.MASK_ADD | Add the value to the existing mask. |
viz.MASK_REMOVE | Remove the value from the existing mask. |
viz.MASK_TOGGLE | Toggle the value with the existing mask. |