It is necessary that the computer be recognized as a mouse (or other device) for a usb-connected PC or smartphone. That is, on the computer there is a special driver that emulates a mouse. Or make it easier to redirect the input data from "usb port 1" (to which the mouse is connected) to the output "usb port 2" (to which the smartphone is connected). Thus, when the smartphone is connected to the PC, it recognizes the PC as a mouse.

I just started to develop development under usb (libusb) and I can not understand how to implement this. Is it even possible to implement this? You can tell what steps you need to perform and in what area to climb.

    0