This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DELTA_12's profile picture

How to get mosue position

Started by DELTA_12, 16 August 2015 - 10:47 AM
DELTA_12 #1
Posted 16 August 2015 - 12:47 PM
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.
Lyqyd #2
Posted 16 August 2015 - 09:01 PM
No, that is not possible.
flaghacker #3
Posted 16 August 2015 - 10: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.