Example #1
0
func (h *Haptic) NewEffect(he *HapticEffect) int {
	_he := (*C.SDL_HapticEffect)(unsafe.Pointer(he))
	return int(C.SDL_HapticNewEffect(h.cptr(), _he))
}
Example #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))
}