Пример #1
0
func (gamecontroller *GameController) GetAttached() bool {
	_gamecontroller := (*C.SDL_GameController)(unsafe.Pointer(gamecontroller))
	return C.SDL_GameControllerGetAttached(_gamecontroller) > 0
}
Пример #2
0
// GameController (https://wiki.libsdl.org/SDL_GameControllerGetAttached)
func (ctrl *GameController) GetAttached() bool {
	return C.SDL_GameControllerGetAttached(ctrl.cptr()) > 0
}