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)); }
public void SetPrevious(IController previous) { foreach (var c in PadControls.OfType <VirtualPadAnalogStick>()) { c.SetPrevious(previous); } }
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)); }
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); } }
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()); }