This command returns the current mouse position
<viz:mouse>.getPosition( | |
mode = viz.WINDOW_NORMALIZED | |
immediate = False | |
) |
Mouse position modes | |
viz.WINDOW_NORMALIZED | Normalized (0,1) window coordinates relative to bottom left corner. |
viz.WINDOW_PIXELS | Pixel coordinates relative to bottom left corner of window. |
viz.SCREEN_PIXELS | Pixel coordinates relative to bottom left corner of monitor. |
viz.RELATIVE_PIXELS | The relative movement of the mouse in pixels, since the last frame. |