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); }
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); }