ERIS CORE

◆ onTouchRelease()

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

class specific onTouchRelease implementation

Parameters
t_x
t_y

Reimplemented from AppBaseClass.

Definition at line 671 of file AppWren.h.

671  {
672  if (!enable_call_forwarding || h_onTouchRelease==0){ //if no script loaded
673  return;
674  } else{
675  wrenEnsureSlots(vm, 4);
676  wrenSetSlotHandle(vm, 0, h_slot0);//App
677  wrenSetSlotDouble(vm, 1, t_x);//param
678  wrenSetSlotDouble(vm, 2, t_y);//param
679  if (!isWrenResultOK(wrenCall(vm,h_onTouchRelease))){
681  };
682  }
683  };
void releaseWrenHandles()
release any/all Wren embedded call handles
Definition: AppWren.cpp:1651
bool isWrenResultOK(WrenInterpretResult res)
Definition: AppWren.h:543
WrenHandle * h_onTouchRelease
Definition: AppWren.h:788
bool enable_call_forwarding
Definition: AppWren.h:765
WrenVM * vm
Definition: AppWren.h:780
WrenHandle * h_slot0
Definition: AppWren.h:781

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

+ Here is the call graph for this function: