/// <summary> /// Dictionary用比較処理 /// </summary> public bool Equals(MouseGestureInput other) { if ((StartingButton.Equals(other.StartingButton)) && (Stroke == other.Stroke)) { return(true); } return(false); }
public override bool IsDown() { mState = Mouse.GetState(); if (mButton.Equals(MouseButton.Left)) { if (mState.LeftButton == ButtonState.Pressed) { return(true); } else { return(false); } } else if (mButton.Equals(MouseButton.Right)) { if (mState.RightButton == ButtonState.Pressed) { return(true); } else { return(false); } } else if (mButton.Equals(MouseButton.Middle)) { if (mState.MiddleButton == ButtonState.Pressed) { return(true); } else { return(false); } } else { return(false); } }