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.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
As intended. I'll consider making it optional, however.