예제 #1
0
        public GameControllerBind?GetBind(GameControllerButton button)
        {
            var ret = GameControllerBind.Create(SDL_GameControllerGetBindForButton(j, button));

            if (ret == null)
            {
                var err = GetError();
                if (err != null)
                {
                    throw err;
                }
            }
            return(ret);
        }
예제 #2
0
        public GameControllerBind?GetBind(GameControllerAxis axis)
        {
            var ret = GameControllerBind.Create(SDL_GameControllerGetBindForAxis(j, axis));

            if (ret == null)
            {
                var err = GetError();
                if (err != null)
                {
                    throw err;
                }
            }
            return(ret);
        }