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

Function PiuView_onTouchBegan

modules/piu/Pebble/piuView.c:544–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544void PiuView_onTouchBegan(xsMachine* the)
545{
546 PiuView* self = PIU(View, xsThis);
547 PiuApplication* application = (*self)->application;
548 if (!application) return;
549 xsIntegerValue index = xsToInteger(xsArg(0));
550 PiuCoordinate x = xsToPiuCoordinate(xsArg(1));
551 PiuCoordinate y = xsToPiuCoordinate(xsArg(2));
552 xsNumberValue ticks = xsToNumber(xsArg(3));
553// (*self)->updating = 1;
554// (*self)->idleTicks = (PiuTick)ticks;
555 PiuApplicationTouchBegan(application, index, x, y, ticks);
556 PiuApplicationAdjust(application);
557// (*self)->updating = 0;
558// PiuViewUpdate(self, application);
559 PiuApplicationIdleCheck(application);
560// (*self)->idleTicks = 0;
561}
562
563void PiuView_onTouchEnded(xsMachine* the)
564{

Callers

nothing calls this directly

Calls 3

PiuApplicationTouchBeganFunction · 0.85
PiuApplicationAdjustFunction · 0.85
PiuApplicationIdleCheckFunction · 0.85

Tested by

no test coverage detected