Artemis.Engine.Input.MouseInput.IsHeldForAtleast C# (CSharp) Method

IsHeldForAtleast() public method

Check if a button has been held down for at least the given number of frames.
public IsHeldForAtleast ( MouseButton button, int frames ) : bool
button MouseButton
frames int
return bool
        public bool IsHeldForAtleast(MouseButton button, int frames)
        {
            return FramesSinceButtonPressed[(int)button] >= frames;
        }