#1
|
|||
|
|||
Mouse bug in V3 and V4
So, if you are getting the mouse state it returns 1, 2, 5.. etc.. .. and it works well, but if you hold your mouse button down and move the mouse away from the window - or if another window gets in the way of the mouse - vizard won't detect that the mouse state has changed and will keep reporting 1, 2, 5, whatever.. until you click with the mouse again in the program.
1) create an event to report the mouse state every 2 seconds. 2) click on the screen and move the mouse away from vizard's windoe 3) release the mouse --> vizard will still report the mouse as having buttons pressed. |
#2
|
|||
|
|||
This issue should be resolved in R4. I just tried the following script and the mouse state is properly updated when the button is released outside the window:
Code:
import viz import vizact viz.go() def PrintMouseState(): print viz.mouse.getState() vizact.ontimer(0.1,PrintMouseState) |
#3
|
|||
|
|||
Now the mouse state is being correctly updated, HOWEVER, if you do a viz.mouse(viz.OFF) hold down let and right mouse buttons and then viz.mouse(viz.ON), it will still think the mouse buttons are down.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mouse pointer problem | Albert Russel | Vizard | 2 | 02-21-2011 02:10 AM |
Warning mouse() -> Set mouse() of window | johannes2 | Vizard | 1 | 08-19-2010 03:11 PM |
how to remove velocity when mouse is disabled? | jvacare1 | Vizard | 2 | 02-18-2010 11:25 AM |
Navigating an avatar using mouse position(2D) in 3D environment | james007 | Vizard | 1 | 10-16-2009 12:29 PM |
Mouse problem | steve | Vizard | 7 | 07-14-2005 04:01 PM |