Hi there! I’ve submitted a bug report to Unity about this, but thought I’d ask here in case anyone has run into a similar issue. I’m not sure this is actually specific to InputSystem (it seems like a lower level problem to me), but I first noticed it when using InputSystem’s OnScreenButton.
I’m seeing an issue where OnPointerDown isn’t firing consistently on iOS (I haven’t tried Android, and don’t have a good way to test this case on non-touchscreen devices). If I quickly press buttons one after the other, sometimes the second OnPointerDown event will never actually fire.
I’ve set up a reduced test case in the linked project zip below. It’s using InputSystem’s OnScreenButton, which implements IPointerDownHandler. This is just being used by the ButtonUpdater to perform some logging and update button colors. Please see the linked video for more explanation and a demonstration (including a slow motion segment at the end to show the timing better).
You’ll notice that this project is using InputSystem 1.1.0-preview.3. This is because I was hitting an issue in 1.0.1 where when multiple controls were activated around the same time, one would sometimes get stuck on instead of never activating at all. This forum thread has other people discussing that issue, though I’m not sure if it’s actually related, or just looks related: OnScreenStick locking when dragging two at the same time
- Example project: https://paul.st/rMX7gzx6wpJi.zip
- Demonstration video: https://paul.st/IVnqDx4EVkUP.mp4