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