diff --git a/Core/Camera/LumixData/FocusMode.cs b/Core/Camera/LumixData/FocusMode.cs index 8c52041..72c71e0 100644 --- a/Core/Camera/LumixData/FocusMode.cs +++ b/Core/Camera/LumixData/FocusMode.cs @@ -9,7 +9,7 @@ public enum FocusMode { [EnumException(0x5)] [XmlEnum(Name = "mf")] - Manual = 0xff, + MF = 0xff, [XmlEnum(Name = "afc")] AFC = 0x3, diff --git a/Core/Camera/LumixState.cs b/Core/Camera/LumixState.cs index 66a95cf..e6e2daa 100644 --- a/Core/Camera/LumixState.cs +++ b/Core/Camera/LumixState.cs @@ -84,7 +84,7 @@ public CameraMode CameraMode public bool CanChangeShutter => CameraMode.ToValue().HasFlag(CameraModeFlags.Shutter); - public bool CanManualFocus => FocusMode == FocusMode.Manual; + public bool CanManualFocus => FocusMode == FocusMode.MF; public CurMenu CurMenu { diff --git a/GMaster/GMaster.csproj b/GMaster/GMaster.csproj index 48ad7ee..5197ef4 100644 --- a/GMaster/GMaster.csproj +++ b/GMaster/GMaster.csproj @@ -111,6 +111,7 @@ + @@ -236,6 +237,12 @@ + + + + + + diff --git a/GMaster/Views/CameraViewControl.xaml b/GMaster/Views/CameraViewControl.xaml index e3d3067..4d83f7b 100644 --- a/GMaster/Views/CameraViewControl.xaml +++ b/GMaster/Views/CameraViewControl.xaml @@ -81,7 +81,7 @@ Style="{StaticResource TransparentButtonStyle}" IsEnabled="{Binding CanCapture}"> - + @@ -90,7 +90,13 @@ - + + + + + + + @@ -120,7 +126,18 @@ - + + + + + + + + + + diff --git a/GMaster/Views/CameraViewControl.xaml.cs b/GMaster/Views/CameraViewControl.xaml.cs index 95d35f3..70f73a0 100644 --- a/GMaster/Views/CameraViewControl.xaml.cs +++ b/GMaster/Views/CameraViewControl.xaml.cs @@ -160,7 +160,7 @@ private async void ImageGestureRecognizer_ManipulationCompleted(GestureRecognize } else { - if (Lumix.LumixState.FocusMode == FocusMode.Manual) + if (Lumix.LumixState.FocusMode == FocusMode.MF) { if (args.PointerDeviceType != PointerDeviceType.Mouse) { @@ -284,7 +284,7 @@ private async Task MoveFocusPoint(double x, double y, PinchStage stage) var fp = ToFloatPoint(x, y); if (fp.IsInRange(0f, 1f) && Lumix != null) { - if (Lumix.LumixState.FocusMode != FocusMode.Manual) + if (Lumix.LumixState.FocusMode != FocusMode.MF) { await Lumix.FocusPointMove(fp); } @@ -298,7 +298,7 @@ private async Task MoveFocusPoint(double x, double y, PinchStage stage) private async Task PinchZoom(PinchStage stage, FloatPoint point, float extend) { extend = (200f + extend) / 1000f; - if (Lumix.LumixState.FocusMode != FocusMode.Manual) + if (Lumix.LumixState.FocusMode != FocusMode.MF) { if (Lumix.LumixState.FocusAreas != null && Lumix.LumixState.FocusAreas.Boxes.Any(b => b.Props.Type == FocusAreaType.OneAreaSelected)) diff --git a/GMaster/Views/CameraViewControlResources.xaml b/GMaster/Views/CameraViewControlResources.xaml index 5d777b4..00be154 100644 --- a/GMaster/Views/CameraViewControlResources.xaml +++ b/GMaster/Views/CameraViewControlResources.xaml @@ -10,6 +10,7 @@ +