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

HoldDownPress() private method

private HoldDownPress ( InputDirection direction ) : bool
direction InputDirection
return bool
        private bool HoldDownPress(InputDirection direction)
        {
            // returns true if there is a hold down press for this frame.

            if (_lastPressedDirection == direction)
            {
                _pressedDirectionDelay -= 0.1f;
                if (_pressedDirectionDelay <= 0.0f)
                {
                    _pressedDirectionDelay = RESET_PRESSED_DIRECTION_DELAY;
                    return true;
                }
            }
            return false;
        }