4 using System.Collections.ObjectModel;
7 namespace SiliconStudio.
Paradox.Input
18 public bool IsDisjunction {
get; set; }
24 throw new ArgumentNullException(
"item",
"Cannot set null instance of VirtualButton");
29 base.InsertItem(index, item);
37 throw new ArgumentNullException(
"item",
"Cannot add null instance of VirtualButton");
42 base.SetItem(index, item);
54 combination.Add(virtualButton);
61 foreach (var virtualButton
in Items)
63 float newValue = virtualButton != null ? virtualButton.GetValue(manager) : 0.0f;
89 var text =
new StringBuilder();
90 for (
int i = 0; i < Items.Count; i++)
92 var virtualButton = Items[i];
95 text.Append(IsDisjunction ?
" || " :
" && ");
97 text.AppendFormat(
"{0}", virtualButton);
99 return text.ToString();