How to disable Touch to Mouse Click translation

Hi All,

Unity by default translates touches to left mouse clicks. I don’t want this behavior.

I’m developing an app that supports multitouch, I want to deploy it to Windows tablet and I want the app to support some mouse control as well.

The taps are triggering mouse events now which is wrong.

Is there a setting in unity input that disables it? Or can I disable it through code?

Input.simulateMouseWithTouches = false;

i tend to setup a specific scenario in my scripts for this. i.e. something like

if(Input.GetMouseButtonDown(0))
{
   if(Input.touchCount > 0)
   { return; } else {

   //.... rest of it here
}
}