Hi all.
I almost have my very first game ready for testing on an iPhone. It is a very simple game controlling one object with the current following code:
void Update () {
Vector3 paddlePos = new Vector3 (0.5f, this.transform.position.y, 0f);
float mousePosInBlocks = Input.mousePosition.x / Screen.width * 16;
paddlePos.x = Mathf.Clamp(mousePosInBlocks, minX, maxX);
this.transform.position = paddlePos;
Using this simple mouse clamping code, when exporting to ios, is this automatically converted into something for touch so I can swipe my finger left and right controlling the object or will I need to code in touch swipe controls ahead of time?
Thx!