コード例 #1
0
ファイル: sdl_touch.go プロジェクト: kyleconroy/golds
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))))
}