Skip to content

Commit 274612a

Browse files
authored
chore: 修改 py binding 默认截图方式
1 parent b18b936 commit 274612a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/binding/Python/maa/controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ class Win32Controller(Controller):
745745
def __init__(
746746
self,
747747
hWnd: Union[ctypes.c_void_p, int, None],
748-
screencap_method: int = MaaWin32ScreencapMethodEnum.PrintWindow,
748+
screencap_method: int = MaaWin32ScreencapMethodEnum.FramePool,
749749
mouse_method: int = MaaWin32InputMethodEnum.Seize,
750750
keyboard_method: int = MaaWin32InputMethodEnum.Seize,
751751
):
@@ -889,7 +889,7 @@ def __init__(
889889
self,
890890
hWnd: Union[ctypes.c_void_p, int, None],
891891
gamepad_type: int = MaaGamepadTypeEnum.Xbox360,
892-
screencap_method: int = MaaWin32ScreencapMethodEnum.PrintWindow,
892+
screencap_method: int = MaaWin32ScreencapMethodEnum.FramePool,
893893
):
894894
"""创建虚拟手柄控制器 / Create virtual gamepad controller
895895

0 commit comments

Comments
 (0)