Forums » Bugs
Joystick center doesn't seem to work
Issue:3431 Joystick center doesn't seem to work 2016-01-18 13:04:06
I use a short plugin to re-center my joystick axis because I like the dead zones set very tight. But the centering does not seem to work. I have the plugin setup to set my deadzones to 100 for mining so my ship will sit still, and 2 for combat so it's sensitive. When I use these functions, I also attempt to set center to the current value, but that doesn't work. The table never changes.
joystick.SetJoystickSingleAxisCenter(0, 6, -100)
LisaJunk = joystick.GetJoystickData(0)
When looking at the LisaJunk table, it does show my joystick info, but no matter what value I put in the SetJoystickSingleAxisCenter function, the results show nothing changed.
I use a short plugin to re-center my joystick axis because I like the dead zones set very tight. But the centering does not seem to work. I have the plugin setup to set my deadzones to 100 for mining so my ship will sit still, and 2 for combat so it's sensitive. When I use these functions, I also attempt to set center to the current value, but that doesn't work. The table never changes.
joystick.SetJoystickSingleAxisCenter(0, 6, -100)
LisaJunk = joystick.GetJoystickData(0)
When looking at the LisaJunk table, it does show my joystick info, but no matter what value I put in the SetJoystickSingleAxisCenter function, the results show nothing changed.
It looks like the 'center' value is ignored in Linux.