Skip to content

Commit f2fe94c

Browse files
litwak913moomiji
andauthored
fix: wlroots use_win32_vk_code method signature (#28)
MaaXYZ/MaaFramework#1283 Co-authored-by: 枫雨 <35213527+moomiji@users.noreply.github.com>
1 parent d9f6f00 commit f2fe94c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/MaaFramework.Binding.Native/MaaController/MaaWlRootsController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ public class MaaWlRootsController : MaaController
1212
{
1313
#pragma warning disable IDE0032 // 使用自动属性
1414
private readonly string _debugWlrSocketPath;
15+
private readonly bool _debugUseWin32VirtualKeyCodes;
1516
#pragma warning restore IDE0032 // 使用自动属性
1617

1718
[ExcludeFromCodeCoverage(Justification = "Debugger display.")]
1819
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
1920
private string DebuggerDisplay => IsInvalid
2021
? $"Invalid {GetType().Name}"
21-
: $"{GetType().Name} {{ WlrSocketPath = {_debugWlrSocketPath} }}";
22+
: $"{GetType().Name} {{ WlrSocketPath = {_debugWlrSocketPath}, UseWin32VirtualKeyCodes = {_debugUseWin32VirtualKeyCodes} }}";
2223

2324
/// <summary>
2425
/// Creates a <see cref="MaaWlRootsController"/> instance.
@@ -46,6 +47,7 @@ public MaaWlRootsController(string wlrSocketPath, bool useWin32VirtualKeyCodes =
4647
SetHandle(handle, needReleased: true);
4748

4849
_debugWlrSocketPath = wlrSocketPath;
50+
_debugUseWin32VirtualKeyCodes = useWin32VirtualKeyCodes;
4951

5052
if (link == LinkOption.Start)
5153
LinkStartOnConstructed(check, wlrSocketPath);

0 commit comments

Comments
 (0)