MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuApplicationTouchEnded

Function PiuApplicationTouchEnded

modules/piu/All/piuApplication.c:352–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352void 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
374void PiuApplicationTouchIdle(PiuApplication* self)
375{

Callers 4

PiuView_onTouchEndedFunction · 0.85
PiuView_onTouchEndedFunction · 0.85
PiuWindowProcFunction · 0.85

Calls 2

PiuTouchLinkAppendSampleFunction · 0.85
PiuViewRescheduleFunction · 0.50

Tested by

no test coverage detected