Replies: 1 comment 1 reply
-
It returns an array... var mouseOutput = mouse()
var x = mouseOutput[0]
var y = mouseOutput[1]
// ... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I 'm trying to use mouse() with JavaScript. I saw a code snippet in lua like this:
mx,my,md=mouse() --get x,y and pressed
I've tried stuff like that with js but nothing seemed to work, on variable held all the values separated by commas. How can I get them individually?
Beta Was this translation helpful? Give feedback.
All reactions