SHWotever / SimHub

Multi sim dashboard, bass shaker driver, ....
http://www.simhubdash.com/
764 stars 96 forks source link

Support other vJoy devices as source in Control Mapper #1517

Closed dsiguero closed 7 months ago

dsiguero commented 7 months ago

I have a button box with several ON-OFF latching switches (ignition, lights, wipers...). When I built it, I wasn't aware that games generally don't support latching switches, so I ended up using a vJoy device along Joystick Gremlin in order to "make them" momentary through software. Also had to hide the original button box device, so games would only see the vJoy device.

When trying to use Control Mapper, I cannot see this vJoy device. I assume it would be because the target device is, in fact, a vJoy device, and SimHub just skips all of them when scanning for source devices.

Would be possible to also use vJoy devices as source? Alternatively I'd need to find some (ON)-OFF momentary switches, but these seem quite tricky to find!

Amazing piece of software btw, I cannot imagine simracing without SimHub! 😁

SHWotever commented 7 months ago

Hi !

Even if binding to a vjoy could be a viable combination in some cases I really wanted to keep away any "loop" (reading a vjoy to update the same vjoy) and unfortunately it's not possible at my knowledge to get the link between the emulated controller being read and the emulated controller being written by Simhub, so I had to ban any vjoy controller as a safety measure.

To bind directly to your device you can add simhub to the hid hide white list so you can bind it directly. Simhub supports natively the kind of transformations you are looking for, for most "sim racing use cases" so you don't need to have "software chain" : image

Nicolas

dsiguero commented 7 months ago

Thanks for the rapid reply, Nicolas.

I was able to make it work just as you described, without Joystick Gremlin, just by whitelisting SimHub in HidHide.