private void SetValueIfNeeded(Xbox360Slider slider, double?value) { if (value.HasValue) { var newValue = (byte)(value.Value * byte.MaxValue); controller.SetSliderValue(slider, newValue); } }
public void SetSliderValue(Xbox360Slider slider, byte value) { switch (slider.Name) { case "LeftTrigger": _nativeReport.bLeftTrigger = value; break; case "RightTrigger": _nativeReport.bRightTrigger = value; break; } if (AutoSubmitReport) { SubmitNativeReport(_nativeReport); } }
public VigemXbox360SliderMapping(Xbox360Slider slider) { Type = slider; }
public static void SetSlider(int controllerId, Xbox360Slider slider, byte value) { singleton.gamepads[controllerId].SetSliderValue(slider, value); }