Forum rules - please read before posting.

Cursor speed

Hi,
I'm noticed cursor speed changes depending on screen resolution.
Here is the AC code:
xboxCursor.x += InputGetAxis ("CursorHorizontal") * cursorMoveSpeed / Screen.width * 5000f;
xboxCursor.y += InputGetAxis ("CursorVertical") * cursorMoveSpeed / Screen.height * 5000f;

So, the smaller the screen the faster cursor moves.
What is 5000 in Screen.height * 5000f? **
I can suggest change **xboxCursor.x += InputGetAxis ("CursorHorizontal") * cursorMoveSpeed / Screen.width * 5000f;

to
xboxCursor.x += InputGetAxis ("CursorHorizontal") * cursorMoveSpeed * Time.deltaTime
or maybe you knoow better way.
Thank you.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.