public bool ClickReleased(EClicks click) { switch (click) { case EClicks.LEFT: return CurrentMouse.LeftButton == ButtonState.Released & PreviousMouse.LeftButton == ButtonState.Pressed; case EClicks.MIDDLE: return CurrentMouse.MiddleButton == ButtonState.Released & PreviousMouse.MiddleButton == ButtonState.Pressed; case EClicks.RIGHT: return CurrentMouse.RightButton == ButtonState.Released & PreviousMouse.RightButton == ButtonState.Pressed; } return false; }
static public bool ClickPress(EClicks click) { switch (click) { case EClicks.LEFT: return(CurrentMouse.LeftButton == ButtonState.Pressed); case EClicks.MIDDLE: return(CurrentMouse.MiddleButton == ButtonState.Pressed); case EClicks.RIGHT: return(CurrentMouse.RightButton == ButtonState.Pressed); } return(false); }