ERIS CORE

◆ onTouchDrag()

void AppWren::onTouchDrag ( uint16_t  t_x,
uint16_t  t_y 
)
inlineoverrideprotectedvirtual

class specific onTouchDrag implementation

Parameters
t_x
t_y

Reimplemented from AppBaseClass.

Definition at line 651 of file AppWren.h.

651  {
652  if (!enable_call_forwarding || h_onTouchDrag==0){ //if no script loaded
653  return;
654  } else{
655  wrenEnsureSlots(vm, 4);
656  wrenSetSlotHandle(vm, 0, h_slot0);//App
657  wrenSetSlotDouble(vm, 1, t_x);//param
658  wrenSetSlotDouble(vm, 2, t_y);//param
659  if (!isWrenResultOK(wrenCall(vm,h_onTouchDrag))){
661  };
662  }
663  };
void releaseWrenHandles()
release any/all Wren embedded call handles
Definition: AppWren.cpp:1651
bool isWrenResultOK(WrenInterpretResult res)
Definition: AppWren.h:543
bool enable_call_forwarding
Definition: AppWren.h:765
WrenHandle * h_onTouchDrag
Definition: AppWren.h:787
WrenVM * vm
Definition: AppWren.h:780
WrenHandle * h_slot0
Definition: AppWren.h:781

References enable_call_forwarding, h_onTouchDrag, h_slot0, isWrenResultOK(), releaseWrenHandles(), and vm.

+ Here is the call graph for this function: