Is there a way to distinguish whether input is mouse or touch based?

I’m looking for a way to integrate mouse and touch actions seamlessly, but I’m stumped at figuring out how to tell the difference between the two. Is this possible in Phaser?

There is the wasTouch (https://github.com/photonstorm/phaser/blob/master/src/input/Pointer.js#L412) property on the Pointer class that gets set to true whenever its a touch event that interacts with the game rather than a mouse event. All the same events still get fired, but you could check for that flag when you care about where the click/touch came from.