SerialUSB – a cheap USB proxy for input devices
blog.gimx.fr
blog.gimx.fr
Bit of an odd scenario though - need to fool my PC into thinking that it has an XBox One controller attached, while feeding the output from my keyboard/mouse through that dummy controller...which then gets streamed to the XBox One via Xbox streaming.
"GIMX stands for Game Input MultipleXer or Game Input MatriX. The purpose of this free software is to control a video game console with a computer (e.g. a PC or a Raspberry Pi). It works with the PS3, the Xbox 360, the PS4 and the Xbox One."
http://www.extremetech.com/gaming/210778-microsoft-will-add-...
But you really dont want such a device because there is fundamental difference between mouse and joystick, one is relative, the other absolute. There wont be any 360 noscopes using such contraption. FPS is fundamentally broken on consoles, hence autoaim, deadzones, aim-assists etc, all to make player think FPS is actually playable with a pad.
The Raspberry Pi Model B has two USB ports, and they're "on the go" ports, so you can set one as master and one as slave. So that should be usable as a general purpose USB MITM device.
Check out the Beaglebone Black too, it has a USB device and host port and its kernel is all setup to use the USB gadget kernel modules. By default it uses the g_multi module to make its USB device port look like a USB storage and ethernet adapter, but you can modify it to use any other USB gadget driver, GadgetFS, etc.