Exemple #1
0
        private void OnGUI()
        {
            if (showValues)
            {
                Rect rect = new Rect(0, 0, 400, 30);
                GUILayout.BeginHorizontal();
                GUILayout.BeginVertical();
                ////
                GUILayout.TextArea(LeftMenuDown.ToString());
                GUILayout.TextArea(LeftMenu.ToString());
                GUILayout.TextArea(LeftMenuUp.ToString());

                GUILayout.TextArea(LeftPadPressDown.ToString());
                GUILayout.TextArea(LeftPadPress.ToString());
                GUILayout.TextArea(LeftPadPressUp.ToString());

                GUILayout.TextArea(LeftPadTouchDown.ToString());
                GUILayout.TextArea(LeftPadTouch.ToString());
                GUILayout.TextArea(LeftPadTouchUp.ToString());

                GUILayout.TextArea(LeftTouchPad.x.ToString("F2") + " " + LeftTouchPad.y.ToString("F2"));

                GUILayout.TextArea(LeftTriggerMagnitude.ToString("F2"));

                GUILayout.TextArea(LeftTriggerDown.ToString());
                GUILayout.TextArea(LeftTrigger.ToString());
                GUILayout.TextArea(LeftTriggerUp.ToString());

                GUILayout.TextArea(LeftGripDown.ToString());
                GUILayout.TextArea(LeftGrip.ToString());
                GUILayout.TextArea(LeftGripUp.ToString());

                GUILayout.EndVertical();
                GUILayout.BeginVertical();
                ////
                GUILayout.TextArea(RightMenuDown.ToString());
                GUILayout.TextArea(RightMenu.ToString());
                GUILayout.TextArea(RightMenuUp.ToString());

                GUILayout.TextArea(RightPadPressDown.ToString());
                GUILayout.TextArea(RightPadPress.ToString());
                GUILayout.TextArea(RightPadPressUp.ToString());

                GUILayout.TextArea(RightPadTouchDown.ToString());
                GUILayout.TextArea(RightPadTouch.ToString());
                GUILayout.TextArea(RightPadTouchUp.ToString());

                GUILayout.TextArea(RightTouchPad.x.ToString("F2") + " " + RightTouchPad.y.ToString("F2"));

                GUILayout.TextArea(RightTriggerMagnitude.ToString("F2"));

                GUILayout.TextArea(RightTriggerDown.ToString());
                GUILayout.TextArea(RightTrigger.ToString());
                GUILayout.TextArea(RightTriggerUp.ToString());

                GUILayout.TextArea(RightGripDown.ToString());
                GUILayout.TextArea(RightGrip.ToString());
                GUILayout.TextArea(RightGripUp.ToString());

                GUILayout.EndVertical();
                GUILayout.EndHorizontal();
            }
        }