Android Touch input not registering
I am using a galaxy note tablet with lollipop 5.1. it does have the ARMv7 processor and Unity seems to run fine and update the physics on the tablet. But the touch functions wont work.
The Touch.GetTouch and touchCount functions are not working on this device, but do work on my phone with android 7.0.
Does anyone know any reason that 5.1 wouldnt detect touch input. Or if there is an issue with the samsung device?
I did some more bug checking this morning and started using unity remote because i didn't know about that until late last night.
Found out that the galaxy tablet will simulate mouse button but it doesn't respond to the 'touch' code.
also Input.GetAxis("$$anonymous$$ouse X") doesnt work when simulating the mouse on tablet.
Also the multi touch zoo$$anonymous$$g seems to work with remote but not in the apk build So my best guess would be there is something I need to fix in the build settings/SD$$anonymous$$ to make it work
Answer by Robotnick44 · Jun 22, 2017 at 12:44 PM
Fixed it.
I used some #if UNITY_ANDROID and #if UNITY_STANDALONE_WIN to separate the piece of code. For some reason my phone using 7.0 ignores the mouse input? or something like that perhaps?
It would seem that the mouse input code after the touch inputs was causing the problems.
Your answer