示例#1
0
func GetTouchFinger(touchId TouchID, index int) *Finger {
	_touchId := (C.SDL_TouchID)(touchId)
	_index := (C.int)(index)
	return (*Finger)(unsafe.Pointer(C.SDL_GetTouchFinger(_touchId, _index)))
}
示例#2
0
文件: touch.go 项目: JalfResi/go-sdl2
func GetTouchFinger(t TouchID, index int) *Finger {
	return (*Finger)(unsafe.Pointer(C.SDL_GetTouchFinger(t.c(), C.int(index))))
}