Pokemon3D.Common.Input.InputSystem.Down C# (CSharp) Method

Down() public method

public Down ( InputDetectionType detectionType, DirectionalInputTypes inputTypes ) : bool
detectionType InputDetectionType
inputTypes DirectionalInputTypes
return bool
        public bool Down(InputDetectionType detectionType, DirectionalInputTypes inputTypes)
        {
            // todo: for all directions: check if game is active!

            if (inputTypes.HasFlag(DirectionalInputTypes.ScrollWheel) && Mouse.GetScrollWheelDifference() < 0)
            {
                return true;
            }
            else if (inputTypes != DirectionalInputTypes.ScrollWheel) // when it's only scroll wheel, do not check the rest.
            {
                return CheckDirectional(detectionType, InputDirection.Down, inputTypes, Keys.Down, Keys.S, Buttons.LeftThumbstickDown, Buttons.RightThumbstickDown, Buttons.DPadDown);
            }
            return false;
        }