AcTools.Windows.Input.MouseSimulator.HorizontalScroll C# (CSharp) Method

HorizontalScroll() public method

Simulates a mouse horizontal wheel scroll gesture. Supported by Windows Vista and later.
public HorizontalScroll ( int scrollAmountInClicks ) : IMouseSimulator
scrollAmountInClicks int The amount to scroll in clicks. A positive value indicates that the wheel was rotated to the right; a negative value indicates that the wheel was rotated to the left.
return IMouseSimulator
        public IMouseSimulator HorizontalScroll(int scrollAmountInClicks) {
            var inputList = new InputBuilder().AddMouseHorizontalWheelScroll(scrollAmountInClicks * MouseWheelClickSize).ToArray();
            SendSimulatedInput(inputList);
            return this;
        }