func (gamecontroller *GameController) GetJoystick() *Joystick {
	_gamecontroller := (*C.SDL_GameController)(unsafe.Pointer(gamecontroller))
	return (*Joystick)(unsafe.Pointer(C.SDL_GameControllerGetJoystick(_gamecontroller)))
}
Exemple #2
0
// GameController (https://wiki.libsdl.org/SDL_GameControllerGetJoystick)
func (ctrl *GameController) GetJoystick() *Joystick {
	return (*Joystick)(unsafe.Pointer(C.SDL_GameControllerGetJoystick(ctrl.cptr())))
}