Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }