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; }
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; }
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); }