コード例 #1
0
 /// <summary>
 /// Get the input mode of the specified type
 /// </summary>
 /// <param name="modeType">The type of input mode to retrieve</param>
 /// <returns>The found input mode that matches the type, or null if not found</returns>
 public InputMode GetInputMode(Type modeType)
 {
     return(InputModes.Find((x) => x.GetType().IsOrIsSubclassOf(modeType)));
 }