示例#1
0
func (h *Haptic) SetGain(gain int) int {
	return int(C.SDL_HapticSetGain(h.cptr(), C.int(gain)))
}
示例#2
0
func (haptic *Haptic) SetGain(gain int) int {
	_haptic := (*C.SDL_Haptic)(unsafe.Pointer(haptic))
	_gain := (C.int)(gain)
	return (int)(C.SDL_HapticSetGain(_haptic, _gain))
}