Stick Sensitivity Unplayable (Windows 10)
A Windows 7 64 bit "driver" for the Steel Batallion Controller
Brought to you by:
hacknfly
Howdy! I've been trying to get this dialed in and working properly over the last two weeks, and I'm 99% of the way there. However there's one thing I can't fix, the sensitivity of the sticks. I followed along with the tutorial, all inputs, pedals, sticks work and I'm able to get them recognized in game. When I calibrate however, you say in the wiki your raw data should read from "0-255 for each axis", whereas for me I'm getting like 0-3000+. In game if I just barely move one of the sticks it's like I'm fully slamming it to the side. Any clue what I've done wrong here? Using this on Windows 10 for clarification.
If you open the exe with visual basic and use ILSpy you can get the source code of the program. Been messing around with it with not much success sadly. Its almost impossible to debug.
I figured it out, try adding deadzones into the code to fix the sensitivity
Here's what I did for the POV
int thumbstickDeadZone = 150;
uint Neutral = 36500;
if (((Math.Abs(controller.SightChangeX) > thumbstickDeadZone) || (Math.Abs(controller.SightChangeY) > thumbstickDeadZone)))
{
joystick.setContPov(1,getDegrees(controller.SightChangeX,controller.SightChangeY),1);
}
else
{
joystick.setContPov(1,Neutral,1);
}
I will post my code to the ticket 23