Hello! I am new to Defold and I experience a problem with touch events
I created a Side Scroller Tutorial project from the templates. I tried to support mouse click and touch screen
Mouse and long slide touch works fine, my problem is with the single touch. It does not work as expected
The documentation state that single touches are automatically considered as mouse left click. But in my case it does not : it is considered as action_id = nil
But if i double tap, it is then considered as a mouse click.
Why this behaviour? I expected a single click to be considered a left mouse button click.
It might be a bug? I am using a Windows laptop with touch screen. Does anyone has experienced a similar issue or anyone that knows how to fix this?
When action_id is nil it usually indicates mouse/touch movement. The click/touch/press event will only happen during the single frame when the click starts and on the frame when the click/touch is released.