Jump to content




How to get mosue position


  • You cannot reply to this topic
2 replies to this topic

#1 DELTA_12

  • Members
  • 4 posts

Posted 16 August 2015 - 11:47 AM

Is it possible to get the mouse cursor position over screen? I know i can use clicks but i need to get the actual mouse position continiously without clicking. Thanks for any help.

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 16 August 2015 - 08:01 PM

No, that is not possible.

#3 flaghacker

  • Members
  • 655 posts

Posted 16 August 2015 - 09:24 PM

As Lyqyd said, impossible. There are a couple of suggestion threads about this but they basically died because a function like os.getMousePos doesn't work well in a multiplayer environment.

You can however get the mouse position while the user is holding the mouse button via the mouse_drag event.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users