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

Function PiuApplicationTouchIdle

modules/piu/All/piuApplication.c:374–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void PiuApplicationTouchIdle(PiuApplication* self)
375{
376 xsIntegerValue count = (*self)->touchLinkCount;
377 xsIntegerValue index;
378 for (index = 0; index < count; index++) {
379 PiuTouchLink* link = (*self)->touchLinks[index];
380 if ((*link)->index) {
381 PiuContent* content = (*link)->content;
382 if (content) {
383 PiuFlags touchFlag = 1 << index;
384 PiuTouchSample sample = &((*link)->samples[(*link)->index - 1]);
385 while (content) {
386 if ((*content)->touches & touchFlag)
387 PiuBehaviorOnTouchMoved(content, index, sample->x, sample->y, sample->ticks, link);
388 content = (PiuContent*)((*content)->container);
389 }
390 }
391 (*link)->index = 0;
392 }
393 }
394}
395
396void PiuApplicationTouchMoved(PiuApplication* self, xsIntegerValue index, PiuCoordinate x, PiuCoordinate y, xsNumberValue ticks)
397{

Callers 4

PiuView_onIdleFunction · 0.85
PiuView_onIdleFunction · 0.85
PiuWindowProcFunction · 0.85
PiuViewIdleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected