Touch screen input bug (DEF-1396) (SOLVED)

Hello i think i found an issue while test my project at mobile device.
To test it i created an empty project and did the following:

  1. set mouse-button-left trigger
  2. create a main.script and put it to the main.collection -> main.go (file at attachment)
  3. launch on mobile (no matter ios or android, i think it because of touch-screen)

Result:
PC/MacOS/HTML5 build: all works fine and print called only if i move cursor inside the dmengine window. If i stop moving there is no prints.

Android/iOS build: after app start it spamming top-left corner coordinates even if i do not touch the screen. After touch somewhere and release my finger it spamming last touched point.
When i say “spamming” i mean that print called every frame.

main.script (309 Bytes)

This is accelerometer events.

Oh very nice, but why coordinates are the same even if i rotate or move my device? They are change but difference is very small.

Fixed in Defold 1.2.116 (input.use_accelerometer in game.project)

3 Likes