But this kind of backfires in some cases.
For eg I have 12 buttons in touch interface. OnMouseButtonDown and OnMouseButtonUP events work fine, until user drags finger/mouse outside of border area.
OnMouseButtonUP never fires. Also updating touch state kind of happens before OnMouseVuttonDown and UP events, so those are useless for tracing touch, because they always know what state was BEFORE user caused event.
I could update touch state every tick, but then those events sometimes get updated state sometimes dont, as expected.
Anyway currently i could not find way to trace touch state per widget, ie. if its touched or not and which finger.
I am almost there with on tick pooling, but it feel a bit hacky way.