public void ClearBoolean()
 {
     PadControls
     .OfType <VirtualPadButton>()
     .ToList()
     .ForEach(p => p.Clear());
 }
 public void SetPrevious(IController previous)
 {
     PadControls
     .OfType <VirtualPadAnalogStick>()
     .ToList()
     .ForEach(c => c.SetPrevious(previous));
 }
Exemple #3
0
 public void SetPrevious(IController previous)
 {
     foreach (var c in PadControls.OfType <VirtualPadAnalogStick>())
     {
         c.SetPrevious(previous);
     }
 }
Exemple #4
0
 public void ClearBoolean()
 {
     foreach (var p in PadControls.OfType <VirtualPadButton>())
     {
         p.Clear();
     }
 }
        public void BumpAnalog(int?x, int?y)
        {
            PadControls
            .OfType <VirtualPadAnalogStick>()
            .ToList()
            .ForEach(a => a.Bump(x, y));

            PadControls
            .OfType <VirtualPadAnalogButton>()
            .ToList()
            .ForEach(a => a.Bump(x));

            PadControls
            .OfType <VirtualPadTargetScreen>()
            .ToList()
            .ForEach(a => a.Bump(x, y));
        }
Exemple #6
0
        public void BumpAnalog(int?x, int?y)
        {
            foreach (var a in PadControls.OfType <VirtualPadAnalogStick>())
            {
                a.Bump(x, y);
            }

            foreach (var a in PadControls.OfType <VirtualPadAnalogButton>())
            {
                a.Bump(x);
            }

            foreach (var a in PadControls.OfType <VirtualPadTargetScreen>())
            {
                a.Bump(x, y);
            }
        }
Exemple #7
0
 public void UpdateValues()
 {
     PadControls.ForEach(c => c.UpdateValues());
 }
 public void Set(IController controller)
 {
     PadControls.ForEach(c => c.Set(controller));
 }
 public void Clear()
 {
     PadControls.ForEach(p => p.Clear());
 }