// --------------------- 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 TouchGestureStateBindingInspector(/*Editor editor,*/ Object undoObject, GUIContent labelContent) { this.labelContent = labelContent; //this.editor = editor; this.undoObject = undoObject; this.rawPressBinding = new DigitalBindingInspector(undoObject, new GUIContent("Raw Press", "Bind Raw Press state to an axis and/or a key.")); this.rawPressMousePosBindingInsp = new MousePositionBindingInspector(undoObject, new GUIContent("Raw Press Mouse Pos", "Bind raw press position as virtual mouse position.")); this.normalPressBinding = new DigitalBindingInspector(undoObject, new GUIContent("Normal Press", "Bind Normal Press (after a potential tap has been rulled out) state to an axis and/or a key.")); this.normalPressMousePosBindingInsp = new MousePositionBindingInspector(undoObject, new GUIContent("Normal Press Mouse Pos", "Bind Normal press position as virtual mouse position.")); this.longPressBinding = new DigitalBindingInspector(undoObject, new GUIContent("Long Press", "Bind Long Press state to an axis and/or a key.")); this.longPressMousePosBindingInsp = new MousePositionBindingInspector(undoObject, new GUIContent("Long Press Mouse Pos", "Bind long press position as virtual mouse position.")); this.tapBinding = new DigitalBindingInspector(undoObject, new GUIContent("Tap", "Bind Single Tap to an axis and/or a key.")); this.tapMousePosBindingInsp = new MousePositionBindingInspector(undoObject, new GUIContent("Tap Mouse Pos", "Bind tap position as virtual mouse position.")); this.doubleTapBinding = new DigitalBindingInspector(undoObject, new GUIContent("Double Tap", "Bind Double Tap to an axis and/or a key.")); this.doubleTapMousePosBindingInsp = new MousePositionBindingInspector(undoObject, new GUIContent("Double Tap Mouse Pos", "Bind double tap position as virtual mouse position.")); this.longTapBinding = new DigitalBindingInspector(undoObject, new GUIContent("Long Tap", "Bind Long Tap state to an axis and/or a key.")); this.longTapMousePosBindingInsp = new MousePositionBindingInspector(undoObject, new GUIContent("Long Tap Mouse Pos", "Bind long tap position as virtual mouse position.")); this.normalPressSwipeHorzAxisBinding = new AxisBindingInspector(undoObject, new GUIContent("Horizontal Swipe Delta (Normal Press)", "Bind Horizontal swipe delta to an axis."), true, InputRig.InputSource.TouchDelta); this.normalPressSwipeVertAxisBinding = new AxisBindingInspector(undoObject, new GUIContent("Vertical Swipe Delta (Normal Press)", "Bind Vertical swipe delta to an axis."), true, InputRig.InputSource.TouchDelta); this.normalPressSwipeDirBinding = new DirectionBindingInspector(undoObject, new GUIContent("Swipe Segment's Direction (Normal Press)", "Swipe segment's direction.")); this.normalPressSwipeMousePosBindingInsp = new MousePositionBindingInspector(undoObject, new GUIContent("Swipe Mouse Pos (Normal Press)", "Bind swipe position as virtual mouse position.")); this.normalPressSwipeJoyBinding = new JoystickStateBindingInspector(undoObject, new GUIContent("Swipe Joystick (Normal Press)", "Swipe Joystick-like state binding.")); this.longPressSwipeJoyBinding = new JoystickStateBindingInspector(undoObject, new GUIContent("Swipe Joystick (Long Press)", "Swipe Joystick-like state binding.")); this.normalPressScrollHorzBinding = new ScrollDeltaBindingInspector(undoObject, new GUIContent("Horizontal Scoll Delta (Normal Press)", "Bind Horizontal scroll delta.")); //true, , InputRig.InputSource.SCROLL); this.normalPressScrollVertBinding = new ScrollDeltaBindingInspector(undoObject, new GUIContent("Vertical Scroll Delta (Normal Press)", "Bind Vertical scroll delta.")); // true, InputRig.InputSource.SCROLL); this.longPressSwipeHorzAxisBinding = new AxisBindingInspector(undoObject, new GUIContent("Horizontal Swipe Delta (Long Press)", "Bind Horizontal swipe delta to an axis."), true, InputRig.InputSource.TouchDelta); this.longPressSwipeVertAxisBinding = new AxisBindingInspector(undoObject, new GUIContent("Vertical Swipe Delta (Long Press)", "Bind Vertical swipe delta to an axis."), true, InputRig.InputSource.TouchDelta); this.longPressSwipeDirBinding = new DirectionBindingInspector(undoObject, new GUIContent("Swipe Segment's Direction (Long Press)", "Swipe segment's direction.")); this.longPressSwipeMousePosBindingInsp = new MousePositionBindingInspector(undoObject, new GUIContent("Swipe Mouse Pos (Long Press)", "Bind swipe position as virtual mouse position.")); this.longPressScrollHorzBinding = new ScrollDeltaBindingInspector(undoObject, new GUIContent("Horizontal Scoll Delta (Long Press)", "Bind Horizontal scroll delta.")); //true, , InputRig.InputSource.SCROLL); this.longPressScrollVertBinding = new ScrollDeltaBindingInspector(undoObject, new GUIContent("Vertical Scroll Delta (Long Press)", "Bind Vertical scroll delta.")); // true, InputRig.InputSource.SCROLL); //this.swipeDirBinding.SetCustomPreGUI(this.DrawSwipeBindModeGUI); this.rawPressEmuTouchInsp = new EmuTouchBindingInspector(undoObject, new GUIContent("Raw Press as Emulated Touch", "Bind touch's position and raw press state as emulated touch (Input.touches[]).")); this.normalPressEmuTouchInsp = new EmuTouchBindingInspector(undoObject, new GUIContent("Normal Press as Emulated Touch", "Bind touch's position and normal press state as emulated touch (Input.touches[]).")); this.longPressEmuTouchInsp = new EmuTouchBindingInspector(undoObject, new GUIContent("Long Press as Emulated Touch", "Bind touch's position and long press state as emulated touch (Input.touches[]).")); }
// --------------------- 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(); }