Artemis.Engine.Input.MouseInput.IsHeldForAtleast C# (CSharp) 메소드

IsHeldForAtleast() 공개 메소드

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
리턴 bool
        public bool IsHeldForAtleast(MouseButton button, int frames)
        {
            return FramesSinceButtonPressed[(int)button] >= frames;
        }