private void ProcessAnyLeftClick(Control control, InteractiveState state)
 {
     if (leftClick != Vector2D.Unused)
     {
         state.IsPressed = control.RotatedDrawAreaContains(leftClick);
     }
 }
        private void ProcessAnyMovement(Control control, InteractiveState state)
        {
            if (movement == Vector2D.Unused)
            {
                return;
            }
            state.IsInside = control.RotatedDrawAreaContains(movement);
            Vector2D rotatedMovement = control.Rotation == 0.0f
                                ? movement : movement.RotateAround(control.RotationCenter, -control.Rotation);

            state.RelativePointerPosition = control.DrawArea.GetRelativePoint(rotatedMovement);
        }
 private void ProcessAnyLeftRelease(Control control, InteractiveState state)
 {
     if (leftRelease == Vector2D.Unused)
     {
         return;
     }
     if (state.IsPressed && control.RotatedDrawAreaContains(leftRelease) && control.IsVisible)
     {
         ClickControl(control, state);
     }
     state.IsPressed = false;
 }
示例#4
0
		private void ProcessAnyLeftRelease(Control control, InteractiveState state)
		{
			if (leftRelease == Vector2D.Unused)
				return;
			if (state.IsPressed && control.RotatedDrawAreaContains(leftRelease) && control.IsVisible)
				ClickControl(control, state);
			state.IsPressed = false;
		}
示例#5
0
		private void ProcessAnyLeftClick(Control control, InteractiveState state)
		{
			if (leftClick != Vector2D.Unused)
				state.IsPressed = control.RotatedDrawAreaContains(leftClick);
		}
示例#6
0
		private void ProcessAnyMovement(Control control, InteractiveState state)
		{
			if (movement == Vector2D.Unused)
				return;
			state.IsInside = control.RotatedDrawAreaContains(movement);
			Vector2D rotatedMovement = control.Rotation == 0.0f
				? movement : movement.RotateAround(control.RotationCenter, -control.Rotation);
			state.RelativePointerPosition = control.DrawArea.GetRelativePoint(rotatedMovement);
		}