Emulate / Be USB HID Device

Hello,
i have installed Ubuntu and now i want to use a male to male usb cable and connect 2 PCs.

on PC 1 (my Ubuntu Machine) runs a c++ program (the program i want to develop). i want to send USB commands to move the mouse on PC 2. Can i pretend to be a USB HID Mouse? I can't find any Libraries except for Ardoino and AVR Boards.

It is for a Project at my University, i want to correct the mouse movement of the mouse plugged to PC1 and send the corrected movement to PC2. PC1 is only a "Middleware" to correct the movement
im not sure if male->male usb would work. maybe ethernet? your alternative could be to make a remote desktop-esque app that sends commands over a network and moves the mouse that way
closed account (z05DSL3A)
I'm with Little Bobby Tables, both PCs will have USB host hardware. Your PC1 would have to have USB OTG hardware so it could act as a slave or a master.

From the description given, mouse->'Middleware'->PC, I would take a look at something like a pcDuino3[1] to be the 'Middleware' part. The pcduino site[2] would likely have all the info you need to use the USB OTG side of things.

Also, the Linux-USB Gadget API Framework[3] would maybe worth a look at.
__________________________________________________
[1] https://www.sparkfun.com/products/12856
[2] http://www.pcduino.com/pcduino-v3/
[3] http://www.linux-usb.org/gadget/
Topic archived. No new replies allowed.