DebuggerComponent.InputSummaryInformationWindow.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //------------------------------------------------------------
  2. // Game Framework
  3. // Copyright © 2013-2021 loyalsoft. All rights reserved.
  4. // Homepage: http://www.game7000.com/
  5. // Feedback: http://www.game7000.com/
  6. //------------------------------------------------------------
  7. using UnityEngine;
  8. namespace UnityGameFramework.Runtime
  9. {
  10. public sealed partial class DebuggerComponent : GameFrameworkComponent
  11. {
  12. private sealed class InputSummaryInformationWindow : ScrollableDebuggerWindowBase
  13. {
  14. protected override void OnDrawScrollableWindow()
  15. {
  16. GUILayout.Label("<b>Input Summary Information</b>");
  17. GUILayout.BeginVertical("box");
  18. {
  19. DrawItem("Back Button Leaves App", Input.backButtonLeavesApp.ToString());
  20. DrawItem("Device Orientation", Input.deviceOrientation.ToString());
  21. DrawItem("Mouse Present", Input.mousePresent.ToString());
  22. DrawItem("Mouse Position", Input.mousePosition.ToString());
  23. DrawItem("Mouse Scroll Delta", Input.mouseScrollDelta.ToString());
  24. DrawItem("Any Key", Input.anyKey.ToString());
  25. DrawItem("Any Key Down", Input.anyKeyDown.ToString());
  26. DrawItem("Input String", Input.inputString);
  27. DrawItem("IME Is Selected", Input.imeIsSelected.ToString());
  28. DrawItem("IME Composition Mode", Input.imeCompositionMode.ToString());
  29. DrawItem("Compensate Sensors", Input.compensateSensors.ToString());
  30. DrawItem("Composition Cursor Position", Input.compositionCursorPos.ToString());
  31. DrawItem("Composition String", Input.compositionString);
  32. }
  33. GUILayout.EndVertical();
  34. }
  35. }
  36. }
  37. }