public static IGamePad New(InputTypes inputType, IDisposableResource parent) { IGamePad api = null; #if XNA if (inputType == InputTypes.XNA) api = new XNA.GamePad(disposable); #endif if (api == null) Debug.ThrowError("GamePadAPI", "Unsuported InputType: " + inputType); return api; }
public static IGamePad New(InputTypes inputType, IDisposableResource parent) { IGamePad api = null; #if XNA if (inputType == InputTypes.XNA) { api = new XNA.GamePad(disposable); } #endif if (api == null) { Debug.ThrowError("GamePadAPI", "Unsuported InputType: " + inputType); } return(api); }