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

IsUnheldFor() public method

Check if a button has been left unpressed for exactly the given number of frames.
public IsUnheldFor ( MouseButton button, int frames ) : bool
button MouseButton
frames int
return bool
        public bool IsUnheldFor(MouseButton button, int frames)
        {
            return FramesSinceButtonReleased[(int)button] == frames;
        }