com.alicizax.unity.framework/Runtime/Debugger/DebuggerComponent.InputSummaryInformationWindow.cs
陈思海 3f895266f1 重构Runtime模式下Debugg模块为UI ToolKit绘制
重构Runtime模式下Debugg模块为UI ToolKit绘制
2026-04-21 13:01:55 +08:00

31 lines
1.6 KiB
C#

using UnityEngine;
using UnityEngine.UIElements;
namespace AlicizaX.Debugger.Runtime
{
public sealed partial class DebuggerComponent
{
private sealed class InputSummaryInformationWindow : PollingDebuggerWindowBase
{
protected override void BuildWindow(VisualElement root)
{
VisualElement section = CreateSection("Input Summary", out VisualElement card);
card.Add(CreateRow("Back Button Leaves App", Input.backButtonLeavesApp.ToString()));
card.Add(CreateRow("Device Orientation", Input.deviceOrientation.ToString()));
card.Add(CreateRow("Mouse Present", Input.mousePresent.ToString()));
card.Add(CreateRow("Mouse Position", Input.mousePosition.ToString()));
card.Add(CreateRow("Mouse Scroll Delta", Input.mouseScrollDelta.ToString()));
card.Add(CreateRow("Any Key", Input.anyKey.ToString()));
card.Add(CreateRow("Any Key Down", Input.anyKeyDown.ToString()));
card.Add(CreateRow("Input String", Input.inputString));
card.Add(CreateRow("IME Is Selected", Input.imeIsSelected.ToString()));
card.Add(CreateRow("IME Composition Mode", Input.imeCompositionMode.ToString()));
card.Add(CreateRow("Compensate Sensors", Input.compensateSensors.ToString()));
card.Add(CreateRow("Composition Cursor Position", Input.compositionCursorPos.ToString()));
card.Add(CreateRow("Composition String", Input.compositionString));
root.Add(section);
}
}
}
}