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

Function PiuTouchLinkAppendSample

modules/piu/All/piuApplication.c:431–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void PiuTouchLinkAppendSample(PiuTouchLink* link, PiuCoordinate x, PiuCoordinate y, double ticks)
432{
433 PiuTouchSample sample;
434 if ((*link)->index == piuTouchSampleCount) {
435 c_memmove(&((*link)->samples[0]), &((*link)->samples[1]), (piuTouchSampleCount - 1) * sizeof(PiuTouchSampleRecord));
436 (*link)->index--;
437 }
438 sample = &((*link)->samples[(*link)->index]);
439 sample->x = x;
440 sample->y = y;
441 sample->ticks = ticks;
442 (*link)->index++;
443}
444
445void PiuTouchLinkCreate(xsMachine* the)
446{

Callers 3

PiuApplicationTouchBeganFunction · 0.85
PiuApplicationTouchEndedFunction · 0.85
PiuApplicationTouchMovedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected