Merge remote-tracking branch 'origin/main'

This commit is contained in:
zjl
2025-01-05 14:57:46 +08:00
2 changed files with 13 additions and 3 deletions

7
1岩水雷火四神.txt Normal file
View File

@@ -0,0 +1,7 @@
// 作者:百事都不通
// 描述:四神指钟离、芙宁娜、雷电将军、玛薇卡
钟离 s(0.2),e(hold),wait(0.3),w(0.2),q
芙宁娜 e,wait(0.3),q
雷电将军 e
玛薇卡 e

View File

@@ -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;