예제 #1
0
파일: haptic.go 프로젝트: JalfResi/go-sdl2
func (h *Haptic) SetAutocenter(autocenter int) int {
	return int(C.SDL_HapticSetAutocenter(h.cptr(), C.int(autocenter)))
}
예제 #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))
}