WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-30-2011, 02:26 PM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
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.
Reply With Quote
  #2  
Old 03-30-2011, 02:37 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
Are you able to reproduce the issue with this script in R4?
Reply With Quote
  #3  
Old 05-11-2011, 06:38 PM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse pointer problem Albert Russel Vizard 2 02-21-2011 01:10 AM
Warning mouse() -> Set mouse() of window johannes2 Vizard 1 08-19-2010 02:11 PM
how to remove velocity when mouse is disabled? jvacare1 Vizard 2 02-18-2010 10:25 AM
Navigating an avatar using mouse position(2D) in 3D environment james007 Vizard 1 10-16-2009 11:29 AM
Mouse problem steve Vizard 7 07-14-2005 03:01 PM


All times are GMT -7. The time now is 11:39 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC