Hi! I am adding a Touch API in an Engine that will use the SDL2 touch as it’s backend. So far so good, everything works. Yey!
Is there a way to produce SDL2 Touch events by using the mouse? The reason I ask is that the current way to test the API is to load a game built with the engine on a real phone or an emulator and test it there, but I would rather test in it in desktop builds - it’s just easier.
I know currently touching the screen in SDL2 produces a single simulated mouse pointer but the reason I am going for the other way around with touch is I need to support multi touch input on mobile (like for onscreen gamepads), but for testing on desktop, testing with a single input would be fine.