public InputAtom_Axis_StickHalf(InputAtom_Stick s) : this(s, true)
 {
 }
 public InputAtom_Axis_StickHalf(InputAtom_Stick s, bool h)
 {
     stick         = s;
     is_horizontal = h;
 }
Exemple #3
0
 public InputAtom_IntStick_Stick(InputAtom_Stick s, float t = AxisSlider.Threshold)
 {
     stick     = s;
     threshold = t;
 }
 static public InputAtom_IntStick GetAsIntStick(this InputAtom_Stick item, float threshold = AxisSlider.Threshold)
 {
     return(item.IfNotNull(i => new InputAtom_IntStick_Stick(i, threshold)));
 }
 static public InputAtom_Axis GetAsAxis(this InputAtom_Stick item, bool is_horizontal)
 {
     return(item.IfNotNull(i => new InputAtom_Axis_StickHalf(i, is_horizontal)));
 }
Exemple #6
0
 public void Initialize(InputAtom_Stick s)
 {
     stick = s;
 }