There are apps like Duet and now Sidecar that let you use your iOS device as a second display and you can touch to control the cursor. That suggests you could just mirror the display to have the appearance of moving the cursor on your primary display. It seems like a short step from there to not displaying anything and only controlling the cursor.
Usually it involves coming in through the assistive technologies interfaces...