Pointer problems! (Android)

前端 未结 1 429
萌比男神i
萌比男神i 2021-01-28 13:23

I\'ve got a problem with multiple pointers in an onTouch method. All pointers are associated with a boolean value, true if down and false if up. It is very important that if on

1条回答
  •  走了就别回头了
    2021-01-28 14:02

    I think the point of having an id for something is so that you have a consistent name by which to reference it. If the id is changing with the pointer count, perhaps another system of identification is called for. You could make an array of pointerIDs that gets referenced/updated independently of the pointer count.

    0 讨论(0)
提交回复
热议问题