示例#1
0
 static public InputAtom_Button GetAsButton(this InputAtom_Axis item, bool is_positive, float threshold = AxisSlider.Threshold)
 {
     return(item.IfNotNull(i => new InputAtom_Button_AxisLimit(item, is_positive, threshold)));
 }
示例#2
0
 static public InputAtom_Slider GetAsSlider(this InputAtom_Axis item, bool is_positive)
 {
     return(item.IfNotNull(i => new InputAtom_Slider_AxisHalf(item, is_positive)));
 }
示例#3
0
 static public InputAtom_IntAxis GetAsIntAxis(this InputAtom_Axis item, float threshold = AxisSlider.Threshold)
 {
     return(item.IfNotNull(i => new InputAtom_IntAxis_Axis(i, threshold)));
 }