Jump to content


Photo

PC Emulating a USB HID (a mouse)


  • Please log in to reply
10 replies to this topic

#1 brulok

brulok
  • Members
  • 5 posts

Posted 27 July 2012 - 08:24 PM

I currently have this in development. A way to make any mouse a gaming mouse (with macros) that will work on any device that supports USB mice.
Posted Image

I have the job listing up:
<!-- m -->http://www.freelance... ... h-You.html<!-- m -->

Final tutorial will be posted here on completion.

#2 Wingfat

Wingfat
  • Members
  • 932 posts

Posted 27 July 2012 - 08:35 PM

You could tottaly do that. Pretty darn easy.. but all in all we would need to know what Buttons you wish to emulate from the macro.
Then complie the script to an exe file that could then be run from a flash drive on any machine you want to have this "Gaming Mouse" to work for.
I did make a script like this at home when I first got Diablo 3.. my Five Button mouse didnt cut it.. needed 7 buttons.. so mapped MouseButton3 & 4 that when Left Shift was held down those buttons on the mouse did other actions than if the shift was not held. in this case MouseButton3 does #1 on the keyboard, with the shift down it does #3.. MouseButton4 without shift does #2 with shift it does #4

what #s or Keys do you want to do? or would you like a GUI Box that will open when first run Asking what the Shift+MB3 would do ect?

#3 brulok

brulok
  • Members
  • 5 posts

Posted 27 July 2012 - 08:49 PM

You misunderstand. The middle computer will have a USB cable that can plug into anything (a ps3 for example) and it will be recognized as a USB mouse. The computer will allow macros and complex mouse functions on devices that you can't install software on.

So in the end... it'll allow me to map 180 degree turns on ps3 FPS shooters if I want.... or use a PC racing wheel on the ps3 etc etc.

The possibilities of this are endless!

#4 Wingfat

Wingfat
  • Members
  • 932 posts

Posted 27 July 2012 - 08:58 PM

You misunderstand. The middle computer will have a USB cable that can plug into anything (a ps3 for example) and it will be recognized as a USB mouse. The computer will allow macros and complex mouse functions on devices that you can't install software on.

wow that is quite a porject you got there then. sorry from the pic i was mis led,, but yeah sending Key Strokes from a Mouse/Wheel or whatnot plugged into a PC, then have those keys sent through a USB to USB cable that then plugs into another system and then that system thinks it isnt a USB cable but a Mouse or whatnot being plugged in.. hmm.. but your mouse and wheel are still connected to your PC.. (hope it is close to your PS3 TV hehehe)

#5 brulok

brulok
  • Members
  • 5 posts

Posted 27 July 2012 - 09:14 PM

I'm likely going to use a dedicated laptop for this. Not much of a stretch since I already have my ps3 decked out with a Solid State hard drive.

#6 engunneer

engunneer
  • Fellows
  • 9162 posts

Posted 30 July 2012 - 03:15 PM

USB doesn't quite work that way. You will need some electronics in between the PC and USB emulated target. USB has a strict host/device relationship. USB OTG can do some bidirectional stuff, but it's for file transfer and I don't think it can emulate USB HID

Certainly possible, but it's not just a cable in between :)

#7 brulokb

brulokb
  • Guests

Posted 30 July 2012 - 07:07 PM

Ya that's the hardware that's being made. That picture was made assuming it was obvious.

#8 engunneer

engunneer
  • Fellows
  • 9162 posts

Posted 31 July 2012 - 04:30 PM

I re-read this and understand better. I moved your topic to Offtopic, since it's not an existing tutorial or completed script. Once you have a working prototype, be sure to make a video and share it back on the forum :)

#9 brulok

brulok
  • Members
  • 5 posts

Posted 31 July 2012 - 07:00 PM

will do... have a video of partially working but not quite done yet!

#10 timex163

timex163
  • Members
  • 11 posts

Posted 24 November 2012 - 09:08 PM

Bump :)

#11 None

None
  • Members
  • 3199 posts

Posted 24 November 2012 - 10:03 PM

Idea:
A Arduino Leonardo can accept serial communication (rs232) and respond with usb key strokes or mouse moves on the computer into which it is plugged. http://arduino.cc/en...noBoardLeonardo