WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 3 votes, 2.67 average. Display Modes
Prev Previous Post   Next Post Next
  #27  
Old 02-28-2005, 09:41 AM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
Exit callback from MOUSEMOVE_EVENT

How can I end a callback-function?

def mymousemove(horz, vert):
print 'My mouse moved to: ', horz, vert

viz.callback(viz.MOUSEMOVE_EVENT, mymousemove)

Not important, just to tell you why I need this:
The new idea to add User interaction is to put some sliders in the scene e.g. on the table.
I was thinking about something like this: as soon as the user clicks on his/her mouse (with a tracker-light taped to it) in a certain area of the scene, a UserInterfaceFunction to change a certain slider is called (identification by position).
When he drags the mouse now to a certain position and releases the mouse it changes something in the room, e.g. the light...

When he releases the mouse button the callback-function for mousemoved should exit (performance...), how do I do that?

Johannes
Reply With Quote
 


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


All times are GMT -7. The time now is 07:29 AM.


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