| 350 | } |
| 351 | |
| 352 | void PiuApplicationTouchEnded(PiuApplication* self, xsIntegerValue index, PiuCoordinate x, PiuCoordinate y, xsNumberValue ticks) |
| 353 | { |
| 354 | if (index < (*self)->touchLinkCount) { |
| 355 | PiuTouchLink* link = (*self)->touchLinks[index]; |
| 356 | PiuContent* content = (*link)->content; |
| 357 | if (content) { |
| 358 | PiuFlags touchFlag = 1 << index; |
| 359 | PiuTouchLinkAppendSample(link, x, y, ticks); |
| 360 | while (content) { |
| 361 | if ((*content)->touches & touchFlag) { |
| 362 | (*content)->touches &= ~touchFlag; |
| 363 | PiuBehaviorOnTouchEnded(content, index, x, y, ticks, link); |
| 364 | } |
| 365 | content = (PiuContent*)((*content)->container); |
| 366 | } |
| 367 | (*link)->content = NULL; |
| 368 | } |
| 369 | (*link)->index = 0; |
| 370 | } |
| 371 | PiuViewReschedule((*self)->view); |
| 372 | } |
| 373 | |
| 374 | void PiuApplicationTouchIdle(PiuApplication* self) |
| 375 | { |
no test coverage detected