示例#1
0
 public static float GetAxisOrDefault(this IInputSource source, InputAction action,
                                      float defaultValue = 1)
 {
     return(CheckSourceValid(source) ? source.GetAxis(action) : defaultValue);
 }