|
|
@@ -100,10 +100,10 @@ public class SB_EventSystem : MonoBehaviour
|
|
|
if (!simulateMouseIsAwaked) return;
|
|
|
if (hasAxisQuat) {
|
|
|
Vector3 lastAngle = nowAxisQuat.eulerAngles;
|
|
|
- nowAxisQuat = Quaternion.Lerp(nowAxisQuat, targetAxisQuat, Time.deltaTime * 15f);
|
|
|
+ nowAxisQuat = Quaternion.Lerp(nowAxisQuat, targetAxisQuat, Time.deltaTime * 8f);
|
|
|
Vector3 curAngle = nowAxisQuat.eulerAngles;
|
|
|
float dx = FormatDeltaAngleY(curAngle.y - lastAngle.y) / 150f * simulateMouse.GetScaleScreenWidth();
|
|
|
- float dy = -FormatDeltaAngleX(curAngle.x - lastAngle.x) / 150f * simulateMouse.GetScaleScreenHeight();
|
|
|
+ float dy = -FormatDeltaAngleX(curAngle.x - lastAngle.x) / 100f * simulateMouse.GetScaleScreenHeight();
|
|
|
deltaVectorForMouse.x = dx;
|
|
|
deltaVectorForMouse.y = dy;
|
|
|
simulateMouse.MoveMousePointer(deltaVectorForMouse);
|
|
|
@@ -140,6 +140,7 @@ public class SB_EventSystem : MonoBehaviour
|
|
|
|
|
|
//鼠标居中
|
|
|
public void MakeMouseToScreenCenter() {
|
|
|
+ hasAxisQuat = false;
|
|
|
simulateMouse.MakeMouseToScreenCenter();
|
|
|
}
|
|
|
|