Programming touch on non-touch supported computer in unity
<p>I have a touch screen laptop (Lenovo IdeaPad Flex 15, Windows 10) but on Unity, if I run the code:</p>

<pre><code>    if (Input.touchSupported)
        print("supported");
    else
        print("not supported");
</code></pre>

<p>It prints that it is not supported. I am trying to make Pong, but you control both paddles and try to get a high score. Here is the code for trying to work past the fact that no touches are ever seen as touches. The code is supposed to move the paddle up or down.</p>

<pre><code>      if (Input.GetMouseButton(0)) {
        if (Input.mousePosition.x &lt; Screen.width / 2)
        {
            //Begin Section: Touch left side
            if (mousePos.y &gt; transform.position.y)
            {
                yPos = gameObject.transform.position.y + (paddleSpeed * Time.deltaTime);
            }
            else
            {
                yPos = gameObject.transform.position.y - (paddleSpeed * Time.deltaTime);
            }
            //End of section
        }

    }
</code></pre>

<p>This works, the only problem is, the paddles have to move independently of each other. So I programmed the other paddle the same way. But, when I run the program and touch my screen with both fingers, the paddles freak out and don't work. </p>

<p><strong>Question: I need a way to program touch support for both paddles. <em>This can be answered in two ways</em>: Either telling me how to program around not having touch support, or how to get Unity to realize I do have touch support</strong> </p>

<p>Any help with this would be hugely appreciated! Thanks!</p>

<p>Update: I forgot to add that I already tested the above code on my Android and it freaks out when you use two hands, otherwise it is flawless.</p>