Also a nice and dynamic approach! I also considered giving the objects itself the “dynamic options”, but in my situation it is preferable to have the “dynamic options” in the touchEventObject itself.
1 of the reasons is that in the GenericTouchHandler approach I need to pass the parameters to every object that has a touchEventListener, in the touchEventHelper approach I only need to pass it to the touchEventObject and can re-use the touchEventObject for multiple objects
2nd reason is that im also using the touchEventObject to simulate touches with my gamepad.
onTypeIconClick({ phase = "ended", simulateTouch = true, target = cursorTarget })
Altogether, I think this topic is a good source to find inspiration to create a touch event helper for different situations