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

Function PiuView_onTouchEnded

modules/piu/Pebble/piuView.c:563–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563void PiuView_onTouchEnded(xsMachine* the)
564{
565 PiuView* self = PIU(View, xsThis);
566 PiuApplication* application = (*self)->application;
567 if (!application) return;
568 xsIntegerValue index = xsToInteger(xsArg(0));
569 PiuCoordinate x = xsToPiuCoordinate(xsArg(1));
570 PiuCoordinate y = xsToPiuCoordinate(xsArg(2));
571 xsNumberValue ticks = xsToNumber(xsArg(3));
572// (*self)->updating = 1;
573// (*self)->idleTicks = (PiuTick)ticks;
574 PiuApplicationTouchEnded(application, index, x, y, ticks);
575 PiuApplicationAdjust(application);
576// (*self)->updating = 0;
577// PiuViewUpdate(self, application);
578 PiuApplicationIdleCheck(application);
579// (*self)->idleTicks = 0;
580}
581
582void PiuView_onTouchMoved(xsMachine* the)
583{

Callers

nothing calls this directly

Calls 3

PiuApplicationTouchEndedFunction · 0.85
PiuApplicationAdjustFunction · 0.85
PiuApplicationIdleCheckFunction · 0.85

Tested by

no test coverage detected