PDA

View Full Version : Question about tracking mouse event


lowpolygon
01-05-2007, 02:59 AM
hi all:
I am having some problems regarding mouse tracking.

I am trying to capture a mouse click event . And everytime I press mouse left buton
once it will retrun a message like "Click once" and on second time I clicked mouse button it will return "Click twice". And then reset the count .

I can get the first message to work . However I am having trouble let scripts knows that I have clicked once already, and this is the second click.

Can anyone please gives me some idea on how to go about it ??

Thanks in advance

Bobo
01-05-2007, 04:18 AM
hi all:
I am having some problems regarding mouse tracking.

I am trying to capture a mouse click event . And everytime I press mouse left buton
once it will retrun a message like "Click once" and on second time I clicked mouse button it will return "Click twice". And then reset the count .

I can get the first message to work . However I am having trouble let scripts knows that I have clicked once already, and this is the second click.

Can anyone please gives me some idea on how to go about it ??

Thanks in advance

WHERE are you clicking? In the viewport? On an object? In a dialog? A little snippet of code so we can get an idea what you are doing and what does not work?

lowpolygon
01-05-2007, 08:17 AM
In this case I am clicking on the viewport, and trying to get the coordinate on each click.

Thanks

AlpineMan
01-05-2007, 08:48 PM
How are we supposed to help you when you don't provide a code snippet for us to look at?

lowpolygon
01-06-2007, 11:08 AM
How are we supposed to help you when you don't provide a code snippet for us to look at?

Don't worry about it. I actually manage to get it to work.
Thanks for the reply.
:D

CGTalk Moderation
01-06-2007, 11:08 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.