コード例 #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))
}
コード例 #2
0
ファイル: gamecontroller.go プロジェクト: emlai/go-sdl2
// GameController (https://wiki.libsdl.org/SDL_GameControllerGetBindForButton)
func (ctrl *GameController) GetBindForButton(btn GameControllerButton) GameControllerButtonBind {
	return GameControllerButtonBind(C.SDL_GameControllerGetBindForButton(ctrl.cptr(), btn.c()))
}