tweak: flip x input

master
tiendat3699 2024-04-16 11:43:09 +07:00
parent fd9206f8d7
commit fa3af023d6
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ namespace GadGame.MiniGame
var inputData = DataReceiver.Instance.DataReceived.PosPoint;
var inputNormalize = new Vector2(inputData.x / 640, inputData.y / 480);
var input = new Vector2();
input.x = Mathf.Lerp(0, _canvas.pixelRect.width, inputNormalize.x);
input.x = -Mathf.Lerp(0, _canvas.pixelRect.width, inputNormalize.x);
input.y = -Mathf.Lerp(0, _canvas.pixelRect.height, inputNormalize.y);
if (input != Vector2.zero)
{