예제 #1
0
func (gamecontroller *GameController) GetButton(button GameControllerButton) byte {
	_gamecontroller := (*C.SDL_GameController)(gamecontroller)
	_button := (C.SDL_GameControllerButton)(button)
	return (byte)(C.SDL_GameControllerGetButton(_gamecontroller, _button))
}
예제 #2
0
// GameController (https://wiki.libsdl.org/SDL_GameControllerGetButton)
func (ctrl *GameController) GetButton(btn GameControllerButton) byte {
	return byte(C.SDL_GameControllerGetButton(ctrl.cptr(), btn.c()))
}