usb - Spoofing a game controller -


i'm trying write allow user use keyboard/mouse combination on games console. approach i've thought of following:

figure out how input maps output in console's controller. old trial , error, connecting controller via usb computer , figuring out how controller responds input using detailed usb logging.

then, write userland program takes keyboard/mouse input , converts controller's output.

so far good. comes complicated bit. need figure out way connect computer console, while making console think being connected standard controller. this, need way create fake usb device, communicates on usb port console. part have no idea whatsoever how do.

i guess i'm looking usb spoofing library of sort, i'm not sure start looking this. python bindings library great, i'm not fussy. similarly, works on mac or linux perfect, live windows-only library in pinch.

usb doesn't work way. usb involves directed hierarchy of devices, , trying connect 2 host devices (your computer , console) result in bad things happen (like destroying usb controllers in both devices).

probably best thing use sort of embedded processor arduino sit between keyboard/mouse , console conversion.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -