Notifications
Clear all

[Closed] Question about tracking mouse event

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

4 Replies
1 Reply
(@bobo)
Joined: 11 months ago

Posts: 0

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?

In this case I am clicking on the viewport, and trying to get the coordinate on each click.

Thanks

How are we supposed to help you when you don’t provide a code snippet for us to look at?

1 Reply
(@lowpolygon)
Joined: 11 months ago

Posts: 0

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