mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-15 07:43:20 +08:00
AutoGeniusInvokation: add hotkey
This commit is contained in:
@@ -6,6 +6,9 @@ namespace Fischless.GameCapture.BitBlt;
|
||||
public class BitBltCapture : IGameCapture
|
||||
{
|
||||
private nint _hWnd;
|
||||
|
||||
public CaptureModes Mode => CaptureModes.BitBlt;
|
||||
|
||||
public bool IsCapturing { get; private set; }
|
||||
|
||||
public void Dispose() => Stop();
|
||||
|
||||
@@ -19,6 +19,8 @@ namespace Fischless.GameCapture.DwmSharedSurface
|
||||
|
||||
private ResourceRegion? _region;
|
||||
|
||||
public CaptureModes Mode => CaptureModes.DwmGetDxSharedSurface;
|
||||
|
||||
public void Start(nint hWnd)
|
||||
{
|
||||
_hWnd = hWnd;
|
||||
|
||||
@@ -16,6 +16,7 @@ public class GraphicsCapture : IGameCapture
|
||||
private GraphicsCaptureItem _captureItem = null!;
|
||||
private GraphicsCaptureSession _captureSession = null!;
|
||||
|
||||
public CaptureModes Mode => CaptureModes.WindowsGraphicsCapture;
|
||||
public bool IsCapturing { get; private set; }
|
||||
|
||||
private ResourceRegion? _region;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
public interface IGameCapture : IDisposable
|
||||
{
|
||||
public CaptureModes Mode { get; }
|
||||
public bool IsCapturing { get; }
|
||||
|
||||
public void Start(nint hWnd);
|
||||
|
||||
Reference in New Issue
Block a user