Re: Universal Control Remapper (UCR) - v0.1.19 26th Dec 2017
Posted: 11 Jan 2018, 18:19
@StrikeEagle The deadzone and all other calculations upon the axis in UCR are part of the plugin, so if you wanted a deadzone for a non-centered axis, you could just use a modified version of the AxisToAxis plugin for that axis mapping. See the previous post I made where I altered the AxisToAxis plugin for another purpose.
You would also need to remove the old deadzone calculation code - just remove these lines from your copy of the AxisToAxis plugin
Bear in mind that given the axis is 0..100 and say you want a 10% deadzone on that, you generally do not want to just set all values <10 to 0.
If you do, a value of 11 will pass through, and the axis would suddenly jump to 11% when it should be 0% at the end of the deadzone. You need to subtract the 10%, then re-scale any remainder to fit 100% of the axis scale.
So as you can see, multiple deadzones would also start to become pretty complex maths.
However, for single deadzones, I agree that there should be a feature to apply it to either end of the axis or the middle.
I am not sure if I can be bothered to update the code for this version of UCR to incorporate this, but it is certainly something I will consider for the new version.
Also, chaining plugins or sub-components (eg dynamically adding in x number of deadzones / inversions etc) is certainly something we are considering trying to do in the new version.
You would also need to remove the old deadzone calculation code - just remove these lines from your copy of the AxisToAxis plugin
Code: Select all
if (this.GuiControls.Deadzone.Get()){
value := UCR.Libraries.StickOps.Deadzone(value, this.GuiControls.Deadzone.Get())
}
If you do, a value of 11 will pass through, and the axis would suddenly jump to 11% when it should be 0% at the end of the deadzone. You need to subtract the 10%, then re-scale any remainder to fit 100% of the axis scale.
So as you can see, multiple deadzones would also start to become pretty complex maths.
However, for single deadzones, I agree that there should be a feature to apply it to either end of the axis or the middle.
I am not sure if I can be bothered to update the code for this version of UCR to incorporate this, but it is certainly something I will consider for the new version.
Also, chaining plugins or sub-components (eg dynamically adding in x number of deadzones / inversions etc) is certainly something we are considering trying to do in the new version.