// --------------------- void OnEnable() { this.pressBindingInsp = new DigitalBindingInspector(this.target, new GUIContent("Press Binding")); this.joyConfigInsp = new AnalogConfigInspector(this.target, new GUIContent(""), false); //Joystick Configuration")); this.joyStateBindingInsp = new JoystickStateBindingInspector(this.target, new GUIContent("Joystick State Binding")); base.InitTouchControlInspector(); }
// ----------------------- public MultiFingerTouchConfigInspector(ControlFreak2.SuperTouchZone touchZone, GUIContent configTitleContent, GUIContent bindingTitleContent) { this.configTitleContent = configTitleContent; this.touchZone = touchZone; this.touchGestureBindingInsp = new TouchGestureStateBindingInspector(touchZone, bindingTitleContent); this.touchGestureConfigInsp = new TouchGestureConfigInspector(touchZone, new GUIContent("Gesture Configuration")); this.swipeJoyConfigInsp = new AnalogConfigInspector(touchZone, new GUIContent("Swipe Joystick Configuration"), false); }
// --------------------- void OnEnable() { this.pressBindingInsp = new DigitalBindingInspector(this.target, new GUIContent("Press Binding")); this.analogTurnBindingInsp = new AxisBindingInspector(this.target, new GUIContent("Analog Turn Binding"), true, InputRig.InputSource.Analog); this.turnLeftBindingInsp = new DigitalBindingInspector(this.target, new GUIContent("Digital Turn Left")); this.turnRightBindingInsp = new DigitalBindingInspector(this.target, new GUIContent("Digital Turn Right")); this.analogConfigInsp = new AnalogConfigInspector(this.target, new GUIContent("Analog Config"), false); base.InitTouchControlInspector(); }
// --------------------- void OnEnable() { this.pressBindingInsp = new DigitalBindingInspector(this.target, new GUIContent("Press Binding")); this.touchPressureBindingInsp = new AxisBindingInspector(null, new GUIContent("Touch Pressure Binding"), false, InputRig.InputSource.Analog, this.DrawPressureBindingExtraGUI); this.joyConfigInsp = new AnalogConfigInspector(this.target, new GUIContent(""), false); //Joystick Configuration")); this.joyStateBindingInsp = new JoystickStateBindingInspector(this.target, new GUIContent("Joystick State Binding")); base.InitTouchControlInspector(); }
// --------------------- void OnEnable() { this.pinchDigitalBindingInsp = new DigitalBindingInspector(this.target, new GUIContent("Digital Pinch Binding", "Digital pinch state is active when user touches with two fingers and pinch them together past specified threshold.")); this.spreadDigitalBindingInsp = new DigitalBindingInspector(this.target, new GUIContent("Digital Spread Binding", "Digital spread state is active when user touches with two fingers and spread them apart past specified threshold.")); this.twistRightDigitalBindingInsp = new DigitalBindingInspector(this.target, new GUIContent("Twist Right Digital Binding", "Digital twist to the right state is active when user touches with two fingers and twists them clockwise past specified threshold.")); this.twistLeftDigitalBindingInsp = new DigitalBindingInspector(this.target, new GUIContent("Twist Left Digital Binding", "Digital twist to the left state is active when user touches with two fingers and twists them counter-clockwise past specified threshold.")); this.twistAnalogBindingInsp = new AxisBindingInspector(this.target, new GUIContent("Twist Analog Binding", "Bind twist analog state to an axis"), true, InputRig.InputSource.Analog, this.DrawTwistAnalogBindingExtraGUI); this.twistDeltaBindingInsp = new AxisBindingInspector(this.target, new GUIContent("Twist Delta Binding", "Bind twist delta to an axis"), true, InputRig.InputSource.NormalizedDelta, this.DrawTwistDeltaBindingExtraGUI); this.pinchAnalogBindingInsp = new AxisBindingInspector(this.target, new GUIContent("Pinch Analog Binding", "Bind pinch analog state to an axis"), true, InputRig.InputSource.Analog, this.DrawPinchAnalogBindingExtraGUI); this.pinchDeltaBindingInsp = new AxisBindingInspector(this.target, new GUIContent("Pinch Delta Binding", "Bind pinch delta to an axis"), true, InputRig.InputSource.NormalizedDelta, this.DrawPinchDeltaBindingExtraGUI); this.pinchScrollDeltaBindingInsp = new ScrollDeltaBindingInspector(this.target, new GUIContent("Pinch Scroll Delta Binding")); this.twistScrollDeltaBindingInsp = new ScrollDeltaBindingInspector(this.target, new GUIContent("Twist Scroll Delta Binding")); this.pinchAnalogConfigInsp = new AnalogConfigInspector(this.target, new GUIContent("Analog Pinch Config"), false); this.twistAnalogConfigInsp = new AnalogConfigInspector(this.target, new GUIContent("Analog Twist Config"), false); this.pinchAnalogConfigInsp.SetDigitalSectionVisibility(false); this.twistAnalogConfigInsp.SetDigitalSectionVisibility(false); this.touchThreshInsp = new TouchGestureThresholdsInspector(this.target, new GUIContent("Gesture Thresholds")); this.separateFingersAsEmuTouchesBindingInsp = new EmuTouchBindingInspector(this.target, new GUIContent("Bind Separate Fingers as Emu. Touches", "Bind separate fingers touching this touch zone to rig's emulated touches (Input.touches[]).")); this.multiFingerConfigInspArray = new MultiFingerTouchConfigInspector[ControlFreak2.SuperTouchZone.MAX_FINGERS]; for (int i = 0; i < this.multiFingerConfigInspArray.Length; ++i) { string labelPrefix = ( (i == 0) ? "Single finger" : (i == 1) ? "Double finger" : (i == 2) ? "Triple finger" : ((i + 1).ToString() + "-finger")); this.multiFingerConfigInspArray[i] = new MultiFingerTouchConfigInspector((ControlFreak2.SuperTouchZone) this.target, new GUIContent(labelPrefix + " Touch Configuration", "Configure multi-finger touch"), new GUIContent(labelPrefix + " Touch Binding")); } base.InitTouchControlInspector(); }