SteelBattalionDriver icon indicating copy to clipboard operation
SteelBattalionDriver copied to clipboard

can't get the gear shift or the toggle switches to work on windows

Open the-math-god opened this issue 4 years ago • 8 comments

hi, I'm having issues with the driver I can't seem to get the gear shift or the toggle switches to do anything any ideas?

the-math-god avatar May 24 '20 06:05 the-math-god

Hi! Also having the same issues.

cashewbeep avatar Jul 21 '20 06:07 cashewbeep

I'm unsure whether it works or not (it shows inconsistently on ArmA 3 when toggling the toggle switches) but I can confirm the Gear Shifter and Tuner Dial do not have any binary outputs or detectable inputs whatsoever. Not sure if this is due to compression of the output data.

1700282UAD avatar Aug 09 '20 20:08 1700282UAD

I am working on this as well. Hoping to get ALL the switches and the knob AND the throttle working in MechWarrior 4 as well as they did using the predecessor to this driver in 32bit win Vista.

ttimlake avatar Aug 12 '20 17:08 ttimlake

The problem with the toggles is likely a case of the game using an older DirectInput API. Older versions only support 32 buttons, newer versions up to 128. The SB controller has 39 buttons, and I believe the toggles are at the end of the list.

The gear shifter and tuner dial are exposed on the HID as "Shifter" and "Weapons Select" respectively. But if the game uses DirectInput it won't be able to access those, as they are not processed by the library. One solution can be to map them to buttons, i.e. the shifter will be represented as 7 different buttons.

caosdoar avatar Aug 17 '20 21:08 caosdoar

thanks for that info would there be a way to tie the shifter to the gas pedal axis so the higher the shifter is the more gas you can apply and that sidestep and break shared the same axis which would leave an axis open for the knob like with this https://forums.frontier.co.uk/threads/working-steel-battalion-controller.405175/ if it had that i think this would be near perfect

the-math-god avatar Aug 18 '20 17:08 the-math-god

@The-Math-God thats possible, but you would need to edit and compile the driver. This is the area of interest: https://github.com/caosdoar/SteelBattalionDriver/blob/556a275a68ba65daffc0029aeb993358ccd10e81/sys/usb.c#L238 If you don't want to lose the access to the accelerator you might need to modify the HID descriptor as well. I recommend you to read this article: https://medium.com/@oscarsc/writing-a-driver-for-the-steel-battalion-controller-e1e4311f1a40

caosdoar avatar Aug 18 '20 18:08 caosdoar

@The-Math-God @ttimlake have you made any progress? I wanted to start looking into getting LED lights, toggles, shifter and tuner dial to work but realized this is probably over my head. I'm curious if there's anything i could do to help or stimulate you guys going further with this. There is still a pretty big community out there of people eager to use the SBC on windows.

simonpostma avatar Sep 08 '20 07:09 simonpostma

@caosdoar do you think that you could use some data from this old xp driver to fix some of these issues.

vtchid_src-0.2.1.tar.gz

mdluffy1234 avatar Nov 17 '20 20:11 mdluffy1234