Esempio n. 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))
}
Esempio n. 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()))
}