From 601fd5eb2277c376b85a5f777c4a70d7937c0c17 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 27 Dec 2020 19:56:24 +0900 Subject: [PATCH] uidriver/js: Update go2cpp touch API --- internal/uidriver/js/input_js.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/uidriver/js/input_js.go b/internal/uidriver/js/input_js.go index 8385eb778..f69d78155 100644 --- a/internal/uidriver/js/input_js.go +++ b/internal/uidriver/js/input_js.go @@ -417,9 +417,9 @@ func (i *Input) updateForGo2Cpp() { i.touches = map[driver.TouchID]pos{} touchCount := go2cpp.Get("touchCount").Int() for idx := 0; idx < touchCount; idx++ { - id := go2cpp.Call("getTouchPositionId", idx) - x := go2cpp.Call("getTouchPositionX", idx) - y := go2cpp.Call("getTouchPositionY", idx) + id := go2cpp.Call("getTouchId", idx) + x := go2cpp.Call("getTouchX", idx) + y := go2cpp.Call("getTouchY", idx) i.touches[driver.TouchID(id.Int())] = pos{ X: x.Int(), Y: y.Int(),