3.1.7/Unity: Broke Touch Input on mobile
Posted: 16 Nov 2023, 10:18
On Noesis 3.1.7/Unity I had mouse input working on WebGL and touch input working on mobile (iOS & Android). However something I've done since my last release 3 months ago has caused the touch behavior to be acting much different on mobile--I must have flipped a setting somewhere but for the life of me I can't figure out what.
I'm now getting both a TouchDown AND a MouseEnter event on a Touch. And if I just hold my finger down, I get continuous TouchMove events at the same location whereas before I'm pretty sure I only got them when the location changed.
I think I can work around this new behavior by #ifdefing out mouse events on mobile and by suppressing consecutive TouchMove events at the same location. For all I know this is the "right" behavior and I was working by accident before. But if anyone has an idea of what setting I might have changed I'd love to figure that out.
Thanks!
I'm now getting both a TouchDown AND a MouseEnter event on a Touch. And if I just hold my finger down, I get continuous TouchMove events at the same location whereas before I'm pretty sure I only got them when the location changed.
I think I can work around this new behavior by #ifdefing out mouse events on mobile and by suppressing consecutive TouchMove events at the same location. For all I know this is the "right" behavior and I was working by accident before. But if anyone has an idea of what setting I might have changed I'd love to figure that out.
Thanks!