I was trying to sort out a simple test for getting touch events like here https://developer.mozilla.org/en-US/docs/Web/API/Touch_events but in Needle I could only see handlers for pointer events here?
https://engine.needle.tools/docs/for-unity-developers.html#inputsystem-callbacks
Original Post on Discord
by user 103054507105067008
Well, they do fire in AR but can we get touches specifically?
by user 103054507105067008
I can get global touch events with these lines in start()
document.addEventListener("touchstart", evt => {
this.touched();
});
document.addEventListener("touchend", evt => {
this.unTouched();
});
But trying to get those local to the active object the same way that we can using PointerEventData
by user 103054507105067008