Mouse position
1 reply [Last post]
leorus
does not have a status.
User offline. Last seen 31 weeks 6 days ago. Offline
Joined: 09/21/2009
Posts:
Groups: None

Sir,

When I use the Mouse.setPosition() I get the Error : the player has not granted permission to use Mouse.setPosition.

What is the problem? I want to position the mouse cursor at a certain point in the screen. How to do it?

 

Leo

 

Nikkio
Just pushed a ton of tiny tweaks to the gallery system, please let us know if you have any issues with the gallery.
User offline. Last seen 4 weeks 3 days ago. Offline
Joined: 10/18/2008
Posts:
Mouse.capture(callback)

To use Mouse.setPosition() you first need to call Mouse.capture().  This will ask the user if it is alright for wild pockets to grab control of the users mouse, if they accept you should be able to use Mouse.setPosition() correctly.