Exemplo n.º 1
0
func (gamecontroller *GameController) GetBindForButton(button GameControllerButton) GameControllerButtonBind {
	_gamecontroller := (*C.SDL_GameController)(gamecontroller)
	_button := (C.SDL_GameControllerButton)(button)
	return (GameControllerButtonBind)(C.SDL_GameControllerGetBindForButton(_gamecontroller, _button))
}
Exemplo n.º 2
0
// GameController (https://wiki.libsdl.org/SDL_GameControllerGetBindForButton)
func (ctrl *GameController) GetBindForButton(btn GameControllerButton) GameControllerButtonBind {
	return GameControllerButtonBind(C.SDL_GameControllerGetBindForButton(ctrl.cptr(), btn.c()))
}