Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
The-Math-God opened this issue May 24, 2020 · 8 comments
Open

Comments

@The-Math-God
Copy link

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?

@cashewbeep
Copy link

Hi! Also having the same issues.

@1700282UAD
Copy link

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.

@ttimlake
Copy link

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.

@caosdoar
Copy link
Owner

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.

@The-Math-God
Copy link
Author

The-Math-God commented Aug 18, 2020

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

@caosdoar
Copy link
Owner

@The-Math-God thats possible, but you would need to edit and compile the driver.
This is the area of interest:

HIDFX2_INPUT_REPORT r;

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

@simonpostma
Copy link

@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.

@mdluffy1234
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants