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

Function PiuBehaviorOnMouseID

modules/piu/All/piuBehavior.c:97–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97PiuBoolean PiuBehaviorOnMouseID(void* it, xsIdentifier id, PiuCoordinate x, PiuCoordinate y)
98{
99 PiuBoolean result = 0;
100 PiuContent* content = it;
101 if ((*content)->behavior) {
102 xsBeginHost((*content)->the);
103 xsVars(2);
104 xsVar(0) = xsReference((*content)->behavior);
105 if (xsFindResult(xsVar(0), id)) {
106 xsVar(1) = xsReference((*content)->reference);
107 result = (PiuBoolean)xsToBoolean(xsCallFunction3(xsResult, xsVar(0), xsVar(1), xsPiuCoordinate(x), xsPiuCoordinate(y)));
108 }
109 xsEndHost((*content)->the);
110 }
111 return result;
112}
113
114void PiuBehaviorOnTouchID(void* it, xsIdentifier id, xsIntegerValue index, PiuCoordinate x, PiuCoordinate y, double ticks, PiuTouchLink* link)
115{

Callers 4

PiuApplicationMouseMovedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected