diff --git a/1岩水雷火四神.txt b/1岩水雷火四神.txt new file mode 100644 index 00000000..b7849e04 --- /dev/null +++ b/1岩水雷火四神.txt @@ -0,0 +1,7 @@ +// 作者:百事都不通 +// 描述:四神指钟离、芙宁娜、雷电将军、玛薇卡 + +钟离 s(0.2),e(hold),wait(0.3),w(0.2),q +芙宁娜 e,wait(0.3),q +雷电将军 e +玛薇卡 e \ No newline at end of file diff --git a/Fischless.GameCapture/Graphics/GraphicsCapture.cs b/Fischless.GameCapture/Graphics/GraphicsCapture.cs index 31c86f77..6113635a 100644 --- a/Fischless.GameCapture/Graphics/GraphicsCapture.cs +++ b/Fischless.GameCapture/Graphics/GraphicsCapture.cs @@ -1,6 +1,6 @@ -using Fischless.GameCapture.Graphics.Helpers; +using System.Diagnostics; +using Fischless.GameCapture.Graphics.Helpers; using SharpDX.Direct3D11; -using System.Diagnostics; using Vanara.PInvoke; using Windows.Foundation.Metadata; using Windows.Graphics.Capture; @@ -55,7 +55,10 @@ public class GraphicsCapture : IGameCapture } _captureSession = _captureFramePool.CreateCaptureSession(_captureItem); - _captureSession.IsCursorCaptureEnabled = false; + if (ApiInformation.IsPropertyPresent("Windows.Graphics.Capture.GraphicsCaptureSession", "IsCursorCaptureEnabled")) + { + _captureSession.IsCursorCaptureEnabled = false; + } if (ApiInformation.IsWriteablePropertyPresent("Windows.Graphics.Capture.GraphicsCaptureSession", "IsBorderRequired")) { _captureSession.IsBorderRequired = false;