x


Locking the cursor in its place?

When I use Screen.lockCursor, it locks the cursor but moves it to the center of the screen. How do I lock it at its current position?

more ▼

asked Aug 24 '11 at 01:09 AM

Rsan gravatar image

Rsan
29 17 19 21

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

As far as I am aware, you can't.

more ▼

answered Aug 24 '11 at 03:15 AM

Talimar gravatar image

Talimar
146 4 4 7

Oh. What I'm doing exactly is keeping the cursor locked on an object when you hold down the right mouse button. The problem is that you can still move off of it, and if I lock the cursor, it moves to the center and doesn't work properly.

Aug 24 '11 at 03:24 AM Rsan

You can just draw your own cursor, and move it by tracking the relative movement of the mouse (even though its hidden and locked).

Aug 25 '11 at 12:32 AM Talimar
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x88
x75
x21

asked: Aug 24 '11 at 01:09 AM

Seen: 843 times

Last Updated: Aug 25 '11 at 12:32 AM