예제 #1
0
파일: haptic.go 프로젝트: JalfResi/go-sdl2
func (h *Haptic) RumblePlay(strength float32, length uint32) int {
	return int(C.SDL_HapticRumblePlay(h.cptr(), C.float(strength), C.Uint32(length)))
}
예제 #2
0
func (haptic *Haptic) RumblePlay(strength float32, length uint32) int {
	_haptic := (*C.SDL_Haptic)(unsafe.Pointer(haptic))
	_strength := (C.float)(strength)
	_length := (C.Uint32)(length)
	return (int)(C.SDL_HapticRumblePlay(_haptic, _strength, _length))
}