app: fix darwin/arm build
Change-Id: I5ce658362ff24c7ed16a269eab7a5fcdcb5ad019 Reviewed-on: https://go-review.googlesource.com/12302 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
parent
ec5d8df4c0
commit
d709f21793
|
@ -120,10 +120,10 @@ var touchEvents struct {
|
|||
}
|
||||
|
||||
//export sendTouch
|
||||
func sendTouch(touch, touchType uintptr, x, y float32) {
|
||||
func sendTouch(cTouch, cTouchType uintptr, x, y float32) {
|
||||
id := -1
|
||||
for i, val := range touchIDs {
|
||||
if val == touch {
|
||||
if val == cTouch {
|
||||
id = i
|
||||
break
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ func sendTouch(touch, touchType uintptr, x, y float32) {
|
|||
if id == -1 {
|
||||
for i, val := range touchIDs {
|
||||
if val == 0 {
|
||||
touchIDs[i] = touch
|
||||
touchIDs[i] = cTouch
|
||||
id = i
|
||||
break
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ func sendTouch(touch, touchType uintptr, x, y float32) {
|
|||
}
|
||||
}
|
||||
|
||||
t := touch.Type(touchType)
|
||||
t := touch.Type(cTouchType)
|
||||
if t == touch.TypeEnd {
|
||||
touchIDs[id] = 0
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue