@@ -10,23 +10,25 @@ public static class DesktopWindowInfoExtensions
1010 /// </summary>
1111 /// <param name="info">The DesktopWindowInfo.</param>
1212 /// <param name="screencapMethod">The screencap method.</param>
13- /// <param name="inputMethod">The input method.</param>
13+ /// <param name="mouseMethod">The mouse method.</param>
14+ /// <param name="keyboardMethod">The keyboard method.</param>
1415 /// <param name="hWnd">The new handle to a win32 window.</param>
1516 /// <param name="link">Executes <see cref="MaaController.LinkStart"/> if <see cref="LinkOption.Start"/>; otherwise, not link.</param>
1617 /// <param name="check">Checks LinkStart().Wait() status if <see cref="CheckStatusOption.ThrowIfNotSucceeded"/>; otherwise, not check.</param>
1718 /// <returns>A MaaWin32Controller.</returns>
1819 /// <exception cref="ArgumentNullException"/>
1920 public static MaaWin32Controller ToWin32Controller ( this DesktopWindowInfo info ,
2021 Win32ScreencapMethod screencapMethod ,
21- Win32InputMethod inputMethod ,
22+ Win32InputMethod mouseMethod ,
23+ Win32InputMethod keyboardMethod ,
2224 nint ? hWnd = null ,
2325 LinkOption link = LinkOption . Start ,
2426 CheckStatusOption check = CheckStatusOption . ThrowIfNotSucceeded )
2527 {
2628 ArgumentNullException . ThrowIfNull ( info ) ;
2729
2830 return hWnd . HasValue
29- ? new MaaWin32Controller ( hWnd . Value , screencapMethod , inputMethod , link , check )
30- : new MaaWin32Controller ( info , screencapMethod , inputMethod , link , check ) ;
31+ ? new MaaWin32Controller ( hWnd . Value , screencapMethod , mouseMethod , keyboardMethod , link , check )
32+ : new MaaWin32Controller ( info , screencapMethod , mouseMethod , keyboardMethod , link , check ) ;
3133 }
3234}
0 commit comments