Make the mouse move the pointer. Then when you touch the screen, relay the pointer visual to the touch system. When you move back to the mouse, relay the pointer visual variables back to the mouse ...
There is no doubt that Windows 11/10/8 is completely optimized for touch-based devices. However, Microsoft did not forget about the majority of users who will be using PCs or notebooks with no-touch ...