예제 #1
0
파일: haptic.go 프로젝트: JalfResi/go-sdl2
func (h *Haptic) NewEffect(he *HapticEffect) int {
	_he := (*C.SDL_HapticEffect)(unsafe.Pointer(he))
	return int(C.SDL_HapticNewEffect(h.cptr(), _he))
}
예제 #2
0
func (haptic *Haptic) NewEffect(effect *HapticEffect) int {
	_haptic := (*C.SDL_Haptic)(unsafe.Pointer(haptic))
	_effect := (*C.SDL_HapticEffect)(unsafe.Pointer(effect))
	return (int)(C.SDL_HapticNewEffect(_haptic, _effect))
}