Ejemplo n.º 1
0
        public FCgInput_Action()
        {
            Info            = new FCgInputInfo(ECgInputType.Action, ECgInputValue.Void);
            Info.Event      = ECgInputEvent.Released;
            Info.Last_Event = Info.Event;

            Events = new Dictionary <ECgInputEvent, CgInputAction_Event>(new ECgInputEventEqualityComparer());
            Events.Add(ECgInputEvent.FirstPressed, new CgInputAction_Event());
            Events.Add(ECgInputEvent.Pressed, new CgInputAction_Event());
            Events.Add(ECgInputEvent.FirstReleased, new CgInputAction_Event());
        }
Ejemplo n.º 2
0
        public FCgInput_Axis()
        {
            Info            = new FCgInputInfo(ECgInputType.Axis, ECgInputValue.Float);
            Info.Event      = ECgInputEvent.Stationary;
            Info.Last_Event = Info.Event;

            Events = new Dictionary <ECgInputEvent, FCgInputAxis_Event>(new ECgInputEventEqualityComparer());
            Events.Add(ECgInputEvent.FirstMoved, new FCgInputAxis_Event());
            Events.Add(ECgInputEvent.Moved, new FCgInputAxis_Event());
            Events.Add(ECgInputEvent.FirstStationary, new FCgInputAxis_Event());
            Events.Add(ECgInputEvent.Stationary, new FCgInputAxis_Event());
        }
Ejemplo n.º 3
0
        public FCgInput_Rotation()
        {
            Info            = new FCgInputInfo(ECgInputType.Rotation, ECgInputValue.Rotator);
            Info.Event      = ECgInputEvent.Stationary;
            Info.Last_Event = Info.Event;

            Events = new Dictionary <ECgInputEvent, FCgInputRotation_Event>(new ECgInputEventEqualityComparer());
            Events.Add(ECgInputEvent.FirstMoved, new FCgInputRotation_Event());
            Events.Add(ECgInputEvent.Moved, new FCgInputRotation_Event());
            Events.Add(ECgInputEvent.FirstStationary, new FCgInputRotation_Event());
            Events.Add(ECgInputEvent.Stationary, new FCgInputRotation_Event());
        }
Ejemplo n.º 4
0
        public override bool Equals(object obj)
        {
            if (!(obj is FCgInputInfo))
            {
                return(false);
            }

            FCgInputInfo rhs = (FCgInputInfo)obj;

            if (Type != rhs.Type)
            {
                return(false);
            }
            if (ValueType != rhs.ValueType)
            {
                return(false);
            }
            if (Event != rhs.Event)
            {
                return(false);
            }
            if (Last_Event != rhs.Last_Event)
            {
                return(false);
            }
            if (Value != rhs.Value)
            {
                return(false);
            }
            if (Location != rhs.Location)
            {
                return(false);
            }
            if (Rotation != rhs.Rotation)
            {
                return(false);
            }
            if (Euler != rhs.Euler)
            {
                return(false);
            }
            if (Duration != rhs.Duration)
            {
                return(false);
            }
            return(true);
        }