Example #1
0
func (h *Haptic) SetAutocenter(autocenter int) int {
	return int(C.SDL_HapticSetAutocenter(h.cptr(), C.int(autocenter)))
}
Example #2
0
func (haptic *Haptic) SetAutocenter(autocenter int) int {
	_haptic := (*C.SDL_Haptic)(unsafe.Pointer(haptic))
	_autocenter := (C.int)(autocenter)
	return (int)(C.SDL_HapticSetAutocenter(_haptic, _autocenter))
}