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

IsHeldFor() public method

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