示例#1
0
 /// <summary>
 /// Determines, if a MouseButton was pressed.
 /// </summary>
 /// <param name="mouseButton">The MouseButton.</param>
 /// <returns>True if pressed</returns>
 public bool IsMouseDown(MouseButtons mouseButton)
 {
     //while the cursor do not intersect our control, return false
     return(IsMouseHoverState && Enable && _mouseState.IsMouseButtonUp(mouseButton));
 }