ChrisNZL / Tallowmere2

Changelog, issue tracker, and development knowledge for Tallowmere 2.
https://tallowmere2.com
13 stars 0 forks source link

Touchscreen: More erratic behaviour with multiple touches #1164

Closed ChrisNZL closed 1 year ago

ChrisNZL commented 1 year ago

Reported in 0.3.7k, and confirmed. Multiple touches trigger buttons incorrectly.

Likely a bug with my internal fingerId tracking, not resetting the fingerId when a button is no longer held, resulting in the fingerId persisting and being checked later on.

Unity's fingerId is typically 0, and then incremented by 1 if needed, but ultimately tries to return to 0 again for new touches when possible. So, fingerIds get reused — not good if they are not reset properly.


  1. Using one finger, tap to open the Weapon Selector, then let go.
  2. Tap the screen to close the Weapon Selector.
  3. Hold a movement arrow, then tap the Jump button — the Weapon Selector will appear.

  1. Hold a movement arrow to move.
  2. Hold Attack or Jump.
  3. Let go of the movement arrow – attack/jump stops working.

ChrisNZL commented 1 year ago

0.3.7n: Fixed now, for real.