public virtual bool SupportsRawAxis2D(T button, TBInput.Controller controller) { TBControllerBase <T> loadedController = GetControllerForType(controller); for (int i = 0; i < loadedController.GetLoadedButtonDefs().Count; i++) { if (EqualityComparer <T> .Default.Equals(button, loadedController.GetLoadedButtonDefs()[i].rawButton)) { return(loadedController.GetLoadedButtonDefs()[i].supportsAxis2D); } } return(false); }
protected static List <TBInput.ButtonDef <T> > LoadMappingsForController(TBControllerBase <T> controller) { return(TBInput.LoadButtonDefs <T>(controller.GetDefaultDefs(), controller.GetFileName())); }