Example #1
0
func (h *Haptic) RunEffect(effect int, iterations uint32) int {
	return int(C.SDL_HapticRunEffect(h.cptr(), C.int(effect), C.Uint32(iterations)))
}
Example #2
0
func (haptic *Haptic) RunEffect(effect int, iterations uint32) int {
	_haptic := (*C.SDL_Haptic)(unsafe.Pointer(haptic))
	_effect := (C.int)(effect)
	_iterations := (C.Uint32)(iterations)
	return (int)(C.SDL_HapticRunEffect(_haptic, _effect, _iterations))
}