コード例 #1
0
ファイル: haptic.go プロジェクト: JalfResi/go-sdl2
func (h *Haptic) RunEffect(effect int, iterations uint32) int {
	return int(C.SDL_HapticRunEffect(h.cptr(), C.int(effect), C.Uint32(iterations)))
}
コード例 #2
0
ファイル: sdl_haptic.go プロジェクト: kyleconroy/golds
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))
}