2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2025-02-18 13:58:28 +00:00

apply mouse sensitivity to touch input

This commit is contained in:
in0finite 2019-07-27 17:27:22 +02:00
parent 691fd3f58a
commit c0e07ec303

View file

@ -165,8 +165,8 @@ namespace SanAndreasUnity.UI
// set mouse move input based on panel drag events
this.ResetMouseMoveInput();
customInput.SetAxis("Mouse X", m_panelDeltasSum.x / Screen.width * this.touchPointerSensitivity);
customInput.SetAxis("Mouse Y", m_panelDeltasSum.y / Screen.height * this.touchPointerSensitivity);
customInput.SetAxis("Mouse X", m_panelDeltasSum.x / Screen.width * this.touchPointerSensitivity * GameManager.Instance.CursorSensitivity.x);
customInput.SetAxis("Mouse Y", m_panelDeltasSum.y / Screen.height * this.touchPointerSensitivity * GameManager.Instance.CursorSensitivity.y);
// reset deltas sum
m_panelDeltasSum = Vector2.zero;