This command returns the current mouse position
| <viz:mouse>.getPosition( | |
| mode = viz.WINDOW_NORMALIZED | |
| immediate = False |
)
mode = viz.WINDOW_NORMALIZED
One of the following modes:
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. |
immediate = False
If True, Vizard will immediately query the mouse instead of using the cached value.
This command can be called at any time to retrieve the current mouse position.
[h, v] - A list containing the horizontal and vertical position of the mouse.