Ejemplo n.º 1
0
        public override void OnSCDestroy()
        {
            base.OnSCDestroy();

            inputDevicePartBase = null;
            dataGetOneList      = null;
        }
Ejemplo n.º 2
0
        public override void OnSCDestroy()
        {
            base.OnSCDestroy();

            inputKeys           = null;
            SCPointEventData    = null;
            inputDevicePartBase = null;
        }
Ejemplo n.º 3
0
        protected PointerEventData.FramePressState StateForMouseButton(InputDevicePartBase devicePart)
        {
            var pressed  = devicePart.inputDataBase.inputKeys.GetKeyDown(InputKeyCode.Enter);
            var released = devicePart.inputDataBase.inputKeys.GetKeyUp(InputKeyCode.Enter);

            if (pressed && released)
            {
                return(PointerEventData.FramePressState.PressedAndReleased);
            }
            if (pressed)
            {
                return(PointerEventData.FramePressState.Pressed);
            }
            if (released)
            {
                return(PointerEventData.FramePressState.Released);
            }
            return(PointerEventData.FramePressState.NotChanged);
        }
Ejemplo n.º 4
0
 public InputDevicePartStatusBase(InputDevicePartBase _inputDevicePartBase)
 {
     inputDevicePartBase = _inputDevicePartBase;
 }
Ejemplo n.º 5
0
 public InputDataBase(InputDevicePartBase inputDevicePartBase)
 {
     this.inputDevicePartBase = inputDevicePartBase;
 }
Ejemplo n.º 6
0
 public static void KeyLongDelegateInvoke(InputKeyCode keyCode, InputDevicePartBase inputDevicePart)
 {
     AnyKeyLongDelegate?.Invoke(keyCode, inputDevicePart);
 }
 public InputDevicePartDispatchEventBase(InputDevicePartBase inputDevicePartBase)
 {
     this.inputDevicePartBase = inputDevicePartBase;
     eventList.Add(inputDevicePartKeyEvent = new InputDevicePartKeyEvent(this));
 }
Ejemplo n.º 8
0
 public InputDataGetBase(InputDevicePartBase _inputDevicePartBase)
 {
     inputDevicePartBase = _inputDevicePartBase;
 }
Ejemplo n.º 9
0
 public override void OnSCDestroy()
 {
     base.OnSCDestroy();
     _modelBase           = null;
     _inputDevicePartBase = null;
 }
Ejemplo n.º 10
0
 public SCPointEventData(InputDevicePartBase inputDevicePartBase, EventSystem eventSystem) : base(eventSystem)
 {
     this.inputDevicePartBase = inputDevicePartBase;
 }