View Single Post
Old 02-01-2019, 12:21 PM   #231
Human being with feelings
Join Date: Jul 2009
Posts: 2,364

Originally Posted by mespotine View Post
I think I've found an issue JS_Mouse_GetState(), while using it on Mac(though I don't know, whether its a Mac-problem or a general problem).

I tried to write a script with it to get mouse-click-events in the ruler, which worked fine on Windows. However, when I tried the same script on Mac, it couldn't detect mouseclicks, when they were too short.
To make sure that you detect even short mouse clicks, you have to use the WindowMessage functions to intercept mouse clicks in a specific window.
juliansader is offline   Reply With Quote